From 1b9123290956d15da2841ce27f9f994a898f5d13 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 31 Aug 2024 18:51:16 +0200 Subject: [PATCH] fix: anchor links Signed-off-by: David Mehren --- public/js/extra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/extra.js b/public/js/extra.js index a4d7d240a..91321d4fc 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -847,7 +847,7 @@ const anchorForId = id => { const anchor = document.createElement('a') anchor.ariaHidden = 'true' anchor.className = 'anchor hidden-xs' - anchor.href = `#${id}` + anchor.href = `${document.location.origin}${document.location.pathname}#${id}` anchor.innerHTML = '' anchor.title = id return anchor