diff --git a/quartz/components/scripts/spa.inline.ts b/quartz/components/scripts/spa.inline.ts index 8475a16..32c2bf2 100644 --- a/quartz/components/scripts/spa.inline.ts +++ b/quartz/components/scripts/spa.inline.ts @@ -94,6 +94,7 @@ function createRouter() { window.addEventListener("click", async (event) => { const { url } = getOpts(event) ?? {} if (!url) return + if (url.pathname === window.location.pathname) return event.preventDefault() try { navigate(url, false)