diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 79db6afa6..d96c53e41 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -93,10 +93,7 @@ if (isIntersecting) { let newHash; newHash = "#" + element.id; - replaceState(newHash, { - ...page, - url: { ...page.url, hash: newHash } - }); + replaceState(newHash, page.state); for (const link of navBarLinks) { if (link.hash === newHash) { activeSection = link.hash.slice(1); diff --git a/src/routes/stats/[ign]/[[profile]]/+page.svelte b/src/routes/stats/[ign]/[[profile]]/+page.svelte index 93f8e78d4..96ebb988a 100644 --- a/src/routes/stats/[ign]/[[profile]]/+page.svelte +++ b/src/routes/stats/[ign]/[[profile]]/+page.svelte @@ -1,10 +1,10 @@