You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be precise, after navigating from /page#something1 to /page#something2 the back button works. But if you open a /page and scroll down, then click a link that takes you to /page#something, the back button won't take you back (to the scroll position you were at).
I noticed that this issue hasn't been addressed since February. I was able to reproduce the bug and would like to work on fixing it. Has it already been resolved?
@mannika763 my PR #6614 basically provided the solution for fixing the bug. Just waiting for it to get reviewed.
But feel free to contribute if you have any other (or better) solution!
Please stop asking if you can work on an issue - just check and see if there's a PR and if not, or you think there's a better fix, you can submit a PR.
Activity
mvasin commentedon Apr 10, 2018
To be precise, after navigating from
/page#something1to/page#something2the back button works. But if you open a/pageand scroll down, then click a link that takes you to/page#something, the back button won't take you back (to the scroll position you were at).webbdays commentedon Dec 15, 2022
can i work on this?
shubhangii0324 commentedon Oct 13, 2023
I am working on this!
rickhanlonii commentedon Jan 11, 2024
Update: this still seems broken on the new react.dev site. It works sometimes but not all the time.
rickhanlonii commentedon Jan 11, 2024
If you want to fix this, please just submit a PR, no need to ask to be assigned.
trevlee0212 commentedon Feb 5, 2024
will try to work on this issue
pwbriggs commentedon Feb 5, 2024
@trevlee0212 go ahead, thanks for the help! Submit a PR when you have a working fix.
trevlee0212 commentedon Feb 9, 2024
@pwbriggs PR submitted!
mannika763 commentedon Jun 16, 2024
I noticed that this issue hasn't been addressed since February. I was able to reproduce the bug and would like to work on fixing it. Has it already been resolved?
mannika763 commentedon Jun 16, 2024
Also, could you provide a video description?
trevlee0212 commentedon Jun 17, 2024
@mannika763 my PR #6614 basically provided the solution for fixing the bug. Just waiting for it to get reviewed.
But feel free to contribute if you have any other (or better) solution!
msabhinavchandra commentedon Mar 16, 2025
Dineshkumarr54 commentedon Jul 30, 2025
rickhanlonii commentedon Sep 2, 2025
Please stop asking if you can work on an issue - just check and see if there's a PR and if not, or you think there's a better fix, you can submit a PR.
Tusharv99 commentedon Jun 10, 2026
want to start this , can anyone guide me how can i do contribution in github .
Fix scroll restore when using browser back after hash links