-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Describe the bug
When navigating between pages on base/web, using the browser’s back button does not always restore the previous scroll position. This can disrupt the user experience, especially on long pages.
Steps
- Open a long page on the Base website.
- Scroll down significantly.
- Click a link to navigate to another page.
- Use the browser back button.
- Observe that the page loads at the top instead of the prior scroll position.
Expected behavior
When navigating back to a previously visited page, the scroll position should be restored to where the user left off. This behavior should be consistent across supported browsers and routes.
Proposed Solution
Ensure that client-side navigation preserves and restores scroll position when navigating back. This may involve explicitly managing scroll restoration in the routing layer so that returning users land at their previous position instead of the top of the page.
Environment
- Device: Desktop
- OS: macOS 14.x
- Browser: Chrome
- Browser Version: 120+
- Reproducibility: Always
Metadata
Metadata
Assignees
Labels
No labels