From ce4c4570d6a239059118391594a30d7bf33d2656 Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Fri, 8 May 2026 07:53:43 +0200 Subject: [PATCH] feat(header): keep internal social-nav links in same tab Social-link entries with internal URLs (starting with /) used to open in a new tab via target=_blank, which is wrong for internal navigation like the new /kalender entry. Co-Authored-By: Claude Opus 4.7 --- src/lib/components/Header.svelte | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 0b366ca..7cbc13c 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -137,10 +137,11 @@ {/each}
{#each socialLinks as social} + {@const isInternal = social.href.startsWith("/")} @@ -260,10 +261,13 @@ class="flex flex-wrap gap-2 pt-2 mt-2 border-t border-stein-0/10" > {#each socialLinks as social} + {@const isInternal = social.href.startsWith("/")}