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