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'
2
1
import { computed , defineComponent , h } from 'vue'
3
2
import type { SlotsType , VNode } from 'vue'
4
3
import { useRoute , useRouter } from 'vue-router'
@@ -92,7 +91,7 @@ export const RouteLink = defineComponent({
92
91
const path = computed ( ( ) =>
93
92
props . to . startsWith ( '#' ) || props . to . startsWith ( '?' )
94
93
? props . to
95
- : `${ __VUEPRESS_BASE__ } ${ removeLeadingSlash ( resolveRoutePath ( props . to , route . path ) ) } ` ,
94
+ : `${ __VUEPRESS_BASE__ } ${ resolveRoutePath ( props . to , route . path ) . substring ( 1 ) } ` ,
96
95
)
97
96
98
97
return ( ) =>
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ export * from './isLinkExternal.js'
7
7
export * from './isLinkHttp.js'
8
8
export * from './isLinkWithProtocol.js'
9
9
export * from './isPlainObject.js'
10
- export * from './inferRoutePath.js'
11
10
export * from './normalizeRoutePath.js'
12
11
export * from './omit.js'
13
12
export * from './removeEndingSlash.js'
You can’t perform that action at this time.
0 commit comments