File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/@vuepress/client/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { computed, h } from 'vue'
2
2
import type { CreateAppFunction , App , ComponentOptions } from 'vue'
3
3
import { createRouter , RouterView , START_LOCATION } from 'vue-router'
4
4
import type { Router , RouterHistory } from 'vue-router'
5
+ import { removeEndingSlash } from '@vuepress/shared'
5
6
import { clientAppEnhances } from '@internal/clientAppEnhances'
6
7
import { clientAppRootComponents } from '@internal/clientAppRootComponents'
7
8
import { clientAppSetups } from '@internal/clientAppSetups'
@@ -71,7 +72,8 @@ export const createVueApp = async ({
71
72
72
73
// create vue-router
73
74
const router = createRouter ( {
74
- history : historyCreator ( siteData . value . base ) ,
75
+ // TODO: it might be an issue of vue-router that have to remove the ending slash
76
+ history : historyCreator ( removeEndingSlash ( siteData . value . base ) ) ,
75
77
routes : pagesRoutes ,
76
78
scrollBehavior : ( to , from , savedPosition ) => {
77
79
if ( savedPosition ) {
You can’t perform that action at this time.
0 commit comments