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
|
|
|---|---|---|
| .. | ||
| basic | ||
| basic-esbuild-file-based | ||
| basic-file-based | ||
| basic-file-based-code-splitting | ||
| basic-scroll-restoration | ||
| basic-solid-query | ||
| basic-solid-query-file-based | ||
| basic-virtual-file-based | ||
| basic-virtual-named-export-config-file-based | ||
| rspack-basic-file-based | ||
| rspack-basic-virtual-named-export-config-file-based | ||
| scroll-restoration-sandbox-vite | ||