diff --git a/static/scripts.js b/static/scripts.js index 1221924..ca233d9 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -26,6 +26,7 @@ document.addEventListener('DOMContentLoaded', () => { target = document.getElementById(targetId || 'translation-bar'); if (target) { e.preventDefault(); + window.location.hash = e.target.hash; target.scrollIntoView({behavior: 'smooth', block: 'start'}); } })); @@ -81,4 +82,4 @@ document.addEventListener('DOMContentLoaded', () => { } } } -})(); \ No newline at end of file +})();