fix: webui can't handle hash property of URL well (#515)

pull/521/head
sigoden 2024-12-28 09:53:59 +08:00 committed by GitHub
parent cbc620481d
commit af95ea1cd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ function newUrl(name) {
}
function baseUrl() {
return location.href.split('?')[0];
return location.href.split(/[?#]/)[0];
}
function baseName(url) {