We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e0c5e4 commit bed68f1Copy full SHA for bed68f1
src/client/theme-default/components/VPButton.vue
@@ -1,6 +1,6 @@
1
<script setup lang="ts">
2
import { computed } from 'vue'
3
-import { withBase } from 'vitepress'
+import { normalizeLink } from '../support/utils'
4
5
const props = defineProps<{
6
tag?: string
@@ -31,7 +31,7 @@ const component = computed(() => {
31
:is="component"
32
class="VPButton"
33
:class="classes"
34
- :href="href ? withBase(href) : undefined"
+ :href="href ? normalizeLink(href) : undefined"
35
:target="isExternal ? '_blank' : undefined"
36
:rel="isExternal ? 'noopener noreferrer' : undefined"
37
>
0 commit comments