fix(build): consider base when checking actual pathname

pull/1858/head
Divyansh Singh 4 years ago
parent 2a9ee9de1b
commit 7e81488269

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

Loading…
Cancel
Save