We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2fc3f commit 1553dbcCopy full SHA for 1553dbc
src/client/app/router.ts
@@ -57,7 +57,7 @@ export function createRouter(
57
href = url.pathname + url.search + url.hash
58
}
59
60
- if (inBrowser) {
+ if (inBrowser && href !== location.href) {
61
// save scroll position before changing url
62
history.replaceState({ scrollPosition: window.scrollY }, document.title)
63
history.pushState(null, '', href)
0 commit comments