Skip to content

Commit

Permalink
fix reload issue with # in url
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <[email protected]>
  • Loading branch information
si458 committed Jan 3, 2025
1 parent 8d4e9bc commit 6aa60d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions views/default.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions views/default3.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6aa60d5

Please sign in to comment.