add noreferer to external link

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2025-11-27 02:02:04 +01:00
parent 163f86bbf7
commit 8dc4f8ce76
2 changed files with 2 additions and 0 deletions

View File

@@ -221,6 +221,7 @@
class:hidden={shouldHideMenuItem(link.route)}
on:click={() => (visible = false)}
target={link.external ? '_blank' : '_self'}
rel={link.external ? 'noreferrer' : undefined}
href={link.route}
>
<div class="flex-shrink-0 mr-3 text-white dark:text-highlight-blue">

View File

@@ -120,6 +120,7 @@
: 'hover:shadow-md hover:bg-highlight-blue/80 dark:hover:bg-highlight-blue/20'}"
class:hidden={shouldHideMenuItem(item.route)}
target={item.external ? '_blank' : '_self'}
rel={item.external ? 'noreferrer' : undefined}
draggable="false"
on:click={() => {
visible = false;