Skip to content

scrollY persists on page change instead of starting at the top #3755

@brvarner

Description

@brvarner

Issue Description

When I click from one page to another, the scrollY value persists, and I'll start at the middle of another page instead of the top. I'm not sure if it fully qualifies as a bug, but I've noticed it happens both on my site and other Gitbook sites I've visited.

Steps to Reproduce

  1. Navigate to a page
  2. Scroll down anywhere
  3. Navigate to another page, end up in the middle

Example

This example is from another GitBook site:

Screen.Recording.2025-10-24.at.11.36.35.AM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions