From 9d98dbbe60d477a78d6dc0e80d16fdddedcd4ed5 Mon Sep 17 00:00:00 2001 From: Sacha STAFYNIAK Date: Thu, 5 Aug 2021 09:52:14 +0200 Subject: [PATCH] fix: override target and rel links attribute in config (#332) --- src/client/theme-default/composables/navLink.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/theme-default/composables/navLink.ts b/src/client/theme-default/composables/navLink.ts index fae5c78f02af..0afa0f201cb3 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 } })