sp-dev-fx-webparts
sp-dev-fx-webparts copied to clipboard
Samples redirecting to wrong URL after clicking back button of browser.
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
- Open the site (https://pnp.github.io/sp-dev-fx-webparts/)
- Search for 'script', using the 'Search Samples' textbox.
- Click the 'Script editor webpart' sample. (you get redirected to https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor)
- Click the back button of the browser
- Click the 'Script editor webpart' sample for a second time.
- 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
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.