diff --git a/static/scripts.js b/static/scripts.js index ca233d9..f4f74df 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -26,7 +26,7 @@ document.addEventListener('DOMContentLoaded', () => { target = document.getElementById(targetId || 'translation-bar'); if (target) { e.preventDefault(); - window.location.hash = e.target.hash; + history.pushState({}, `${document.title} - ${target.innerText}`, e.target.href); target.scrollIntoView({behavior: 'smooth', block: 'start'}); } }));