Skip to content

Commit

Permalink
fix: webui can't handle hash property of URL well (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Dec 28, 2024
1 parent cbc6204 commit af95ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ function newUrl(name) {
}

function baseUrl() {
return location.href.split('?')[0];
return location.href.split(/[?#]/)[0];
}

function baseName(url) {
Expand Down

0 comments on commit af95ea1

Please sign in to comment.