diff --git a/hugo/assets/ts/main.ts b/hugo/assets/ts/main.ts index e73b5a174..423b8edf3 100644 --- a/hugo/assets/ts/main.ts +++ b/hugo/assets/ts/main.ts @@ -104,7 +104,7 @@ class App { element.addEventListener('click', (e) => { e.preventDefault(); const target = element.getAttribute('href').replace(currentPath, ''); - window.history.replaceState(null, '', target); + window.location.href = target; scrollToHash(target); }); });