diff --git a/src/client/theme-default/composables/navLink.ts b/src/client/theme-default/composables/navLink.ts index fae5c78f..0afa0f20 100644 --- a/src/client/theme-default/composables/navLink.ts +++ b/src/client/theme-default/composables/navLink.ts @@ -28,8 +28,8 @@ export function useNavLink(item: Ref) { isExternal }, href: isExternal ? item.value.link : withBase(item.value.link), - target: item.value.target || isExternal ? `_blank` : null, - rel: item.value.rel || isExternal ? `noopener noreferrer` : null, + target: item.value.target || (isExternal ? `_blank` : null), + rel: item.value.rel || (isExternal ? `noopener noreferrer` : null), 'aria-label': item.value.ariaLabel } })