fix(router): remove fakeHost when fixing url extenions

pull/99/head
Eduardo San Martin Morote 4 years ago
parent 5daa8d2c38
commit 2eb31358bf

@ -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

Loading…
Cancel
Save