diff --git a/src/client/app/router.ts b/src/client/app/router.ts index f0ab3ec3903b..f0f3e350f3c7 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -90,7 +90,7 @@ export function createRouter( if (inBrowser) { nextTick(() => { let actualPathname = - '/' + + siteDataRef.value.base + __pageData.relativePath.replace(/(?:(^|\/)index)?\.md$/, '$1') if (!siteDataRef.value.cleanUrls && !actualPathname.endsWith('/')) { actualPathname += '.html'