-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Navigation back with anchors is broken #16508
Comments
@aralroca Working fine with Windows 10 + Chrome Version 84.0.4147.135 + ABove Link |
Hi, the above reproduction doesn't appear to be having any problems, we also have tests covering navigating with an anchor tag and back which are passing. |
Could it be related to #9833? (Might be worth noting that the linked issue is with macOS/iOS + Safari, the report here is macOS + Chrome.) |
A thousand apologies, because I thought I had reproduced it correctly and now I see that with the Codesandbox it doesn't happen to me either. In local it does happen to me, I am trying to reproduce it again from the sandbox. While I close the issue, I'll open it again after creating a reproducible example. |
Meanwhile, I share a video here about what is happening to me: Some details:
I'll try to do a reproducible example |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
When you enter directly on a page with an anchor and then you navigate to another page, everything is fine. But when you press to go back on the previous page, the navigation is broken.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
I created a reproducible example:
Code: https://codesandbox.io/s/nextjs-forked-660z5?file=/pages/index.tsx
Executable: https://660z5.sse.codesandbox.io/#example
Expected behavior
Should navigate back.
System information
The text was updated successfully, but these errors were encountered: