The settings layout uses a scrollable div with overflow-y-auto, not window. useScrollToHash was scrolling window which had no effect on SPA navigation. Point it at the actual scroll container instead. Authored-by-agent: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>