Skip to content

Commit d63cb86

Browse files
committedNov 19, 2023
fix(client): regression - router not working without .html present
closes #3225
1 parent a12a00c commit d63cb86

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/client/app/router.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,7 @@ export function createRouter(
191191
!target &&
192192
origin === currentUrl.origin &&
193193
// don't intercept if non-html extension is present
194-
!(siteDataRef.value.cleanUrls
195-
? lookup(pathname)
196-
: lookup(pathname) !== 'text/html')
194+
(lookup(pathname) == null || lookup(pathname) === 'text/html')
197195
) {
198196
e.preventDefault()
199197
if (

0 commit comments

Comments
 (0)
Please sign in to comment.