From 50f1029657250d40b23b13c7eccc7e75a0b7afb7 Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Mon, 4 Nov 2019 11:12:12 +1000 Subject: [PATCH] Update scripts.js --- static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}); } }));