We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f079a22 commit 4fb387dCopy full SHA for 4fb387d
src/client/app/router.ts
@@ -133,6 +133,8 @@ export function createRouter(
133
// scroll between hash anchors in the same page
134
if (hash && hash !== currentUrl.hash) {
135
history.pushState(null, '', hash)
136
+ // still emit the event so we can listen to it in themes
137
+ window.dispatchEvent(new Event('hashchange'))
138
// use smooth scroll when clicking on header anchor links
139
scrollTo(link, hash, link.classList.contains('header-anchor'))
140
}
0 commit comments