diff --git a/src/client/theme-default/components/VPLink.vue b/src/client/theme-default/components/VPLink.vue index a10ee04a..f57e3328 100644 --- a/src/client/theme-default/components/VPLink.vue +++ b/src/client/theme-default/components/VPLink.vue @@ -12,7 +12,11 @@ const props = defineProps<{ }>() const tag = computed(() => props.tag ?? (props.href ? 'a' : 'span')) -const isExternal = computed(() => props.href && EXTERNAL_URL_RE.test(props.href)) +const isExternal = computed( + () => + (props.href && EXTERNAL_URL_RE.test(props.href)) || + props.target === '_blank' +)