0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/solid-router
Sean Cassiere ad623cc992
fix(react-router,solid-router): scroll to element does not work for hash history (#3700)
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 2025-03-09 16:00:21 +13:00
..
basic feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
basic-esbuild-file-based feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
basic-file-based feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
basic-file-based-code-splitting feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
basic-scroll-restoration feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
basic-solid-query feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
basic-solid-query-file-based feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
basic-virtual-file-based feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
basic-virtual-named-export-config-file-based feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
rspack-basic-file-based feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
rspack-basic-virtual-named-export-config-file-based feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
scroll-restoration-sandbox-vite fix(react-router,solid-router): scroll to element does not work for hash history (#3700) 2025-03-09 16:00:21 +13:00