Skip to content

Commit

Permalink
fix(router): remove fakeHost when fixing url extenions
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 16, 2020
1 parent 5daa8d2 commit 2eb3135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/app/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function createRouter(
const url = new URL(href, fakeHost)
if (!url.pathname.endsWith('/') && !url.pathname.endsWith('.html')) {
url.pathname += '.html'
href = url.href
href = url.pathname + url.search + url.hash
}
if (inBrowser) {
// save scroll position before changing url
Expand Down

0 comments on commit 2eb3135

Please sign in to comment.