From 901f9b3168f4cdb8f8dda04d8060d1e265ec18e2 Mon Sep 17 00:00:00 2001 From: Sacha STAFYNIAK Date: Sun, 11 Jul 2021 23:31:44 +0200 Subject: [PATCH] fix: override target and rel links attribute in config --- 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 } })