Describe the bug
In a simple SPA app with solid and solidjs router, if I navigate from /home to /page1 to /page2 and then click the browser back button but cancel the navigation, the next time I click the browser back button if I confirm the navigation the destination page is /home and not /page1. The content of the corresponding page is also not being displayed.
Your Example Website or App
https://github.com/Gust99/solidjs-router-app
Steps to Reproduce the Bug or Issue
- Run
npm run dev
- Go to localhost:5173
- Click the page1 link
- Click the page2 link
- Click the browser back button
- Cancel navigation
- Click again the browser back button
- Confirm navigation
Expected behavior
- I should navigate to page1 after confirming the navigation the second time I try to go from page2 to page1.
- The corresponding content of the route should be displayed.
Screenshots or Videos

Platform
- OS: Windows
- Browser: Chrome
- Version: 138.0.7204.157
Additional context
No response
Describe the bug
In a simple SPA app with solid and solidjs router, if I navigate from
/hometo/page1to/page2and then click the browser back button but cancel the navigation, the next time I click the browser back button if I confirm the navigation the destination page is/homeand not/page1. The content of the corresponding page is also not being displayed.Your Example Website or App
https://github.com/Gust99/solidjs-router-app
Steps to Reproduce the Bug or Issue
npm run devExpected behavior
Screenshots or Videos
Platform
Additional context
No response