From cf8ad1a29133cc373a1a70720d36e02b38ba6898 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 29 Jan 2023 11:19:48 +0530 Subject: [PATCH] fix(build): consider base when checking actual pathname (#1858) --- src/client/app/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'