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 &&
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 (

Loading…
Cancel
Save