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 f0debd2 commit d08eeedCopy full SHA for d08eeed
src/client/theme-default/components/VPLink.vue
@@ -12,7 +12,11 @@ const props = defineProps<{
12
}>()
13
14
const tag = computed(() => props.tag ?? (props.href ? 'a' : 'span'))
15
-const isExternal = computed(() => props.href && EXTERNAL_URL_RE.test(props.href))
+const isExternal = computed(
16
+ () =>
17
+ (props.href && EXTERNAL_URL_RE.test(props.href)) ||
18
+ props.target === '_blank'
19
+)
20
</script>
21
22
<template>
0 commit comments