Skip to content

Commit cf8ad1a

Browse files
authoredJan 29, 2023
fix(build): consider base when checking actual pathname (#1858)
1 parent 2a9ee9d commit cf8ad1a

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
@@ -90,7 +90,7 @@ export function createRouter(
9090
if (inBrowser) {
9191
nextTick(() => {
9292
let actualPathname =
93-
'/' +
93+
siteDataRef.value.base +
9494
__pageData.relativePath.replace(/(?:(^|\/)index)?\.md$/, '$1')
9595
if (!siteDataRef.value.cleanUrls && !actualPathname.endsWith('/')) {
9696
actualPathname += '.html'

0 commit comments

Comments
 (0)
Please sign in to comment.