mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-07-22 06:11:23 +00:00
fix: jump to anchor on deployed site triggering spa refresh
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user