sp-dev-fx-webparts icon indicating copy to clipboard operation
sp-dev-fx-webparts copied to clipboard

Samples redirecting to wrong URL after clicking back button of browser.

Open martinlingstuyl opened this issue 1 year ago • 1 comments

Disclaimer

Yes

Sample

Not a sample, but the site itself

Author(s)

@hugoabernier, This issue is about the site itself, so let me just reference you 😉

What happened?

When searching for a sample using the 'Search Samples' textbox, opening the GH page, and hitting back on my browser, and trying to open the same sample again, it opens the 'list-form' sample.

It's probably due to some client side filtering issue. the list-form sample is the first sample in the list before you start filtering in the first place.

Steps to reproduce

  1. Open the site (https://pnp.github.io/sp-dev-fx-webparts/)
  2. Search for 'script', using the 'Search Samples' textbox.
  3. Click the 'Script editor webpart' sample. (you get redirected to https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor)
  4. Click the back button of the browser
  5. Click the 'Script editor webpart' sample for a second time.
  6. You now end up on the list form sample page (https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-list-form)

Expected behavior

I'd expect the right sample to open.

Target SharePoint environment

SharePoint Online

Developer environment

Windows

Browsers

  • [ ] Internet Explorer
  • [X] Microsoft Edge
  • [ ] Google Chrome
  • [ ] FireFox
  • [ ] Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Paste the results of SPFx doctor

nb

Additional environment details

No response

martinlingstuyl avatar Sep 12 '22 08:09 martinlingstuyl

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Sep 12 '22 08:09 ghost