Skip to content

The browser "back" button doesn't work #787

Description

@mvasin

The browser "back" button doesn't work after clicking a fragment link (/page => /page#something).

URL changes back from /page#something to /page, but it has no effect on the scroll position.

Activity

  1. mvasin commented on Apr 10, 2018

    @mvasin
    ContributorAuthor

    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).

  2. webbdays commented on Dec 15, 2022

    @webbdays

    can i work on this?

  3. shubhangii0324 commented on Oct 13, 2023

    @shubhangii0324

    I am working on this!

  4. rickhanlonii commented on Jan 11, 2024

    @rickhanlonii
    Member

    Update: this still seems broken on the new react.dev site. It works sometimes but not all the time.

  5. rickhanlonii commented on Jan 11, 2024

    @rickhanlonii
    Member

    If you want to fix this, please just submit a PR, no need to ask to be assigned.

  6. trevlee0212 commented on Feb 5, 2024

    @trevlee0212

    will try to work on this issue

  7. pwbriggs commented on Feb 5, 2024

    @pwbriggs

    @trevlee0212 go ahead, thanks for the help! Submit a PR when you have a working fix.

  8. trevlee0212 commented on Feb 9, 2024

    @trevlee0212

    @pwbriggs PR submitted!

  9. mannika763 commented on Jun 16, 2024

    @mannika763

    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?

  10. mannika763 commented on Jun 16, 2024

    @mannika763

    Also, could you provide a video description?

  11. trevlee0212 commented on Jun 17, 2024

    @trevlee0212

    @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!

  12. msabhinavchandra commented on Mar 16, 2025

    @msabhinavchandra
  13. Dineshkumarr54 commented on Jul 30, 2025

    @Dineshkumarr54
  14. rickhanlonii commented on Sep 2, 2025

    @rickhanlonii
    Member

    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.

  15. Tusharv99 commented on Jun 10, 2026

    @Tusharv99

    want to start this , can anyone guide me how can i do contribution in github .

  16. added a commit that references this issue on Aug 3, 2026
    f9ab231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions