From d63cb867b14ba49c8333ad0d69d33874e2ece6c6 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 19 Nov 2023 12:18:18 +0530 Subject: [PATCH] fix(client): regression - router not working without .html present closes #3225 --- src/client/app/router.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 (