diff --git a/src/client/app/router.ts b/src/client/app/router.ts index f48af964..49cd4e22 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -191,9 +191,7 @@ export function createRouter( !target && origin === currentUrl.origin && // don't intercept if non-html extension is present - !(siteDataRef.value.cleanUrls - ? lookup(pathname) - : lookup(pathname) !== 'text/html') + (lookup(pathname) == null || lookup(pathname) === 'text/html') ) { e.preventDefault() if (