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
{{ message }}
Repository navigation
Commit f9ab231
Browse filesBrowse the repository at this point in the historyBrowse files
Fix scroll restore when using browser back after hash links
With Next.js scrollRestoration set to manual, going back from an
in-page fragment left the URL correct but kept the hash scroll
position. Save scrollY on the history entry before hash navigation
and restore it on popstate. Fixes#787.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments