Skip to content

Commit

Permalink
fix(theme): external link icon not visible for target _blank links
Browse files Browse the repository at this point in the history
closes #3327
  • Loading branch information
brc-dd committed Apr 28, 2024
1 parent f0debd2 commit d08eeed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/theme-default/components/VPLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
</script>

<template>
Expand Down

0 comments on commit d08eeed

Please sign in to comment.