You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b3d901f
Browse filesBrowse the repository at this point in the historyBrowse files
When clicking a search result linking to a specific section
(e.g., page.html?q=term#section), scrollToFirstVisibleMatch()
overrode the browser's hash scroll, jumping to the first <mark>
near the top. Additionally, quarto-nav.js baked ?q= into all
link hrefs during DOMContentLoaded, causing TOC clicks to
trigger full-page reloads.
Two fixes:
- Move replaceState (removing ?q=) to module load time, before
any DOMContentLoaded handlers run, so quarto-nav.js resolves
link hrefs against a clean URL
- Guard scrollToFirstVisibleMatch with a hash check so browser
hash navigation is preserved for section-level search results
0 commit comments