Skip to content

Commit 2eb3135

Browse files
committed
fix(router): remove fakeHost when fixing url extenions
1 parent 5daa8d2 commit 2eb3135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/app/router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function createRouter(
3636
const url = new URL(href, fakeHost)
3737
if (!url.pathname.endsWith('/') && !url.pathname.endsWith('.html')) {
3838
url.pathname += '.html'
39-
href = url.href
39+
href = url.pathname + url.search + url.hash
4040
}
4141
if (inBrowser) {
4242
// save scroll position before changing url

0 commit comments

Comments
 (0)