From 1b372a9a7bad8698b14ceb9cb559b57e5ae176a4 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Wed, 6 Dec 2023 22:16:43 +0100 Subject: [PATCH] fix: missing hash for links starting with / --- website/astro.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 89bffbc9..b6617704 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -35,6 +35,7 @@ function relativeURLFix() { // any other relative url starting with / // NOTE: this does strip off serialized queries and fragments newHref += url.pathname.endsWith('/') ? url.pathname : url.pathname + '/'; + newHref += url.hash || ''; } else { // leave this URL alone return;