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