diff --git a/src/client/app/router.ts b/src/client/app/router.ts index 3a7d8cb5..d9f5198b 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -166,6 +166,11 @@ export function createRouter( const button = (e.target as Element).closest('button') if (button) return + // temporary fix for #3264 + const currentUrl = window.location + if (siteDataRef.value.themeConfig?.logoLink === currentUrl.origin) + return + const link = (e.target as Element | SVGElement).closest< HTMLAnchorElement | SVGAElement >('a') @@ -181,7 +186,6 @@ export function createRouter( : link.href, link.baseURI ) - const currentUrl = window.location const mimeType = lookup(pathname) // only intercept inbound links if (