summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/global.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/global.js b/js/global.js
index 68aceb03f..d0396d6a8 100644
--- a/js/global.js
+++ b/js/global.js
@@ -219,7 +219,7 @@ const detect_blocked_gravatars = () => {
*/
const adjust_scroll_onload = () => {
if (location.hash) {
- const $target = document.querySelector(location.hash);
+ const $target = document.querySelector(CSS.escape(location.hash));
if ($target) {
window.setTimeout(() => scroll_element_into_view($target), 50);