Skip to content

Commit d08eeed

Browse files
committedApr 28, 2024·
fix(theme): external link icon not visible for target _blank links
closes #3327
1 parent f0debd2 commit d08eeed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/client/theme-default/components/VPLink.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ const props = defineProps<{
1212
}>()
1313
1414
const tag = computed(() => props.tag ?? (props.href ? 'a' : 'span'))
15-
const isExternal = computed(() => props.href && EXTERNAL_URL_RE.test(props.href))
15+
const isExternal = computed(
16+
() =>
17+
(props.href && EXTERNAL_URL_RE.test(props.href)) ||
18+
props.target === '_blank'
19+
)
1620
</script>
1721

1822
<template>

0 commit comments

Comments
 (0)
Please sign in to comment.