Skip to content

Commit

Permalink
fix(build): consider base when checking actual pathname (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Jan 29, 2023
1 parent 2a9ee9d commit cf8ad1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/app/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit cf8ad1a

Please sign in to comment.