We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab3d6e6 commit 7297db5Copy full SHA for 7297db5
packages/client/src/components/RouteLink.ts
@@ -1,4 +1,3 @@
1
-import { removeLeadingSlash } from '@vuepress/shared'
2
import { computed, defineComponent, h } from 'vue'
3
import type { SlotsType, VNode } from 'vue'
4
import { useRoute, useRouter } from 'vue-router'
@@ -92,7 +91,7 @@ export const RouteLink = defineComponent({
92
91
const path = computed(() =>
93
props.to.startsWith('#') || props.to.startsWith('?')
94
? props.to
95
- : `${__VUEPRESS_BASE__}${removeLeadingSlash(resolveRoutePath(props.to, route.path))}`,
+ : `${__VUEPRESS_BASE__}${resolveRoutePath(props.to, route.path).substring(1)}`,
96
)
97
98
return () =>
0 commit comments