Skip to content

Commit

Permalink
fix(client): regression - router not working without .html present
Browse files Browse the repository at this point in the history
closes #3225
  • Loading branch information
brc-dd committed Nov 19, 2023
1 parent a12a00c commit d63cb86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/client/app/router.ts
Expand Up @@ -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 (
Expand Down

0 comments on commit d63cb86

Please sign in to comment.