From 6aa60d556f1b6f00853dd175990d7ff76fbf3b7c Mon Sep 17 00:00:00 2001 From: si458 Date: Fri, 3 Jan 2025 16:03:17 +0000 Subject: [PATCH] fix reload issue with # in url Signed-off-by: si458 --- views/default.handlebars | 1 + views/default3.handlebars | 1 + 2 files changed, 2 insertions(+) diff --git a/views/default.handlebars b/views/default.handlebars index bf8dc9a9..43846159 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -2186,6 +2186,7 @@ function reload() { var x = window.location.href; if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); } + if (x.endsWith('#')) { x = x.substring(0, x.length - 1); } window.location.href = x; } diff --git a/views/default3.handlebars b/views/default3.handlebars index b91ed81a..f8fa8745 100644 --- a/views/default3.handlebars +++ b/views/default3.handlebars @@ -2689,6 +2689,7 @@ function reload() { var x = window.location.href; if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); } + if (x.endsWith('#')) { x = x.substring(0, x.length - 1); } window.location.href = x; }