0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e
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
..
create-start chore(deps): update all non-major dependencies (#3311) 2025-02-03 02:23:19 +00:00
e2e-utils tests: stabilize e2e tests to not be dependent on external host (#3302) 2025-02-01 11:13:10 +01:00
react-router fix(react-router,solid-router): scroll to element does not work for hash history (#3700) 2025-03-09 16:00:21 +13:00
react-start feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00
solid-router fix(react-router,solid-router): scroll to element does not work for hash history (#3700) 2025-03-09 16:00:21 +13:00
solid-start feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636) 2025-03-08 13:20:26 +01:00