-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser forward button navigates to wrong pages #8409
Comments
Please describe what behaviour you expect and current behaviour. |
If you first navigate from page 1 to page 2 to page 3 through the buttons, and then follow up by hitting the browser back button to go back to page 2 and then to page 1. But currently the browser forward button takes you to page 2 first and after that it goes to page 1. |
In short: it stops working after the first I don't now if #8367 is released yet, but that might have introduced the reproducible behaviour (or fixed it, if it's not yet released). |
Here is a snack to reproduce: https://snack.expo.io/@derk-jan/react-navigation-5:-broken-web-linking
Here is another way to reproduce
Everything works fine if you only use the header back button. Problem used to be reproducible to inject (navigate) route on non-last-index, now it happens on every back -> forward combination. edit: made the snack simpler. Remounting not necessary to reproduce. |
Current Behavior
When you hit the browser forward button the browser history gets scrambled. You end up on unexpected pages.
Expected Behavior
Whenever the browser forward button is available I would expect to be able to go forward to the previously visited pages.
How to reproduce
Here’s a repository to reproduce the problem: https://github.com/davemollen/browser-history-bug
Your Environment
The text was updated successfully, but these errors were encountered: