fix(client): regression - router not working without .html present

closes #3225
pull/3233/head
Divyansh Singh 1 year ago
parent a12a00ca78
commit d63cb867b1

@ -191,9 +191,7 @@ export function createRouter(
!target && !target &&
origin === currentUrl.origin && origin === currentUrl.origin &&
// don't intercept if non-html extension is present // don't intercept if non-html extension is present
!(siteDataRef.value.cleanUrls (lookup(pathname) == null || lookup(pathname) === 'text/html')
? lookup(pathname)
: lookup(pathname) !== 'text/html')
) { ) {
e.preventDefault() e.preventDefault()
if ( if (

Loading…
Cancel
Save