We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77c1b4d commit 60dd0a4Copy full SHA for 60dd0a4
src/client/theme-default/components/VPLink.vue
@@ -25,8 +25,8 @@ const isExternal = computed(() => props.href && EXTERNAL_URL_RE.test(props.href)
25
'no-icon': noIcon
26
}"
27
:href="href ? normalizeLink(href) : undefined"
28
- :target="target || (isExternal ? '_blank' : undefined)"
29
- :rel="rel || (isExternal ? 'noreferrer' : undefined)"
+ :target="target ?? (isExternal ? '_blank' : undefined)"
+ :rel="rel ?? (isExternal ? 'noreferrer' : undefined)"
30
>
31
<slot />
32
</component>
0 commit comments