fix reload issue with # in url
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Jan 3, 2025 at 16:03 UTC
6aa60d556f1b6f00853dd175990d7ff76fbf3b7c
2 files changed
+2
views/default.handlebars
+1
@@ -2186,6 +2186,7 @@
2186
function reload() {
2187
var x = window.location.href;
2188
if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); }
2189
+ if (x.endsWith('#')) { x = x.substring(0, x.length - 1); }
2190
window.location.href = x;
2191
}
2192
views/default3.handlebars
+1
@@ -2689,6 +2689,7 @@
2689
function reload() {
2690
var x = window.location.href;
2691
if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); }
2692
+ if (x.endsWith('#')) { x = x.substring(0, x.length - 1); }
2693
window.location.href = x;
2694
}
2695