Skip to content

Commit

Permalink
fix: normalize link in VPButton (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jul 5, 2022
1 parent 3e0c5e4 commit bed68f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/components/VPButton.vue
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed } from 'vue'
import { withBase } from 'vitepress'
import { normalizeLink } from '../support/utils'
const props = defineProps<{
tag?: string
Expand Down Expand Up @@ -31,7 +31,7 @@ const component = computed(() => {
:is="component"
class="VPButton"
:class="classes"
:href="href ? withBase(href) : undefined"
:href="href ? normalizeLink(href) : undefined"
:target="isExternal ? '_blank' : undefined"
:rel="isExternal ? 'noopener noreferrer' : undefined"
>
Expand Down

0 comments on commit bed68f1

Please sign in to comment.