File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 1- import { removeLeadingSlash } from '@vuepress/shared'
21import { computed , defineComponent , h } from 'vue'
32import type { SlotsType , VNode } from 'vue'
43import { useRoute , useRouter } from 'vue-router'
@@ -92,7 +91,7 @@ export const RouteLink = defineComponent({
9291 const path = computed ( ( ) =>
9392 props . to . startsWith ( '#' ) || props . to . startsWith ( '?' )
9493 ? props . to
95- : `${ __VUEPRESS_BASE__ } ${ removeLeadingSlash ( resolveRoutePath ( props . to , route . path ) ) } ` ,
94+ : `${ __VUEPRESS_BASE__ } ${ resolveRoutePath ( props . to , route . path ) . substring ( 1 ) } ` ,
9695 )
9796
9897 return ( ) =>
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ export * from './isLinkExternal.js'
77export * from './isLinkHttp.js'
88export * from './isLinkWithProtocol.js'
99export * from './isPlainObject.js'
10- export * from './inferRoutePath.js'
1110export * from './normalizeRoutePath.js'
1211export * from './omit.js'
1312export * from './removeEndingSlash.js'
You can’t perform that action at this time.
0 commit comments