mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
The `restoreScroll` function was directly interfacing with `window.location.hash` to get the 'hash' value, which conflicts with how hash routing functions. As such, when the hash value was retrieved, it came back as `#/page#foo` instead of just `#foo` like it would with regular browser history. Switching it to use the `history` driver attached to the `router` instance, correctly returns the `hash` value irrespective of the type of routing being used. Fixes #3479 |
History
|
|
|---|---|---|
| .. | ||
| create-start | ||
| e2e-utils | ||
| react-router | ||
| react-start | ||
| solid-router | ||
| solid-start | ||