From: sigoden Date: Sat, 28 Dec 2024 01:53:59 +0000 (+0800) Subject: fix: webui can't handle hash property of URL well (#515) X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=af95ea1cd740683e0355417cff97fb786c927cb5;p=ozva-cloud fix: webui can't handle hash property of URL well (#515) --- diff --git a/assets/index.js b/assets/index.js index 8d8d470..45595ed 100644 --- a/assets/index.js +++ b/assets/index.js @@ -833,7 +833,7 @@ function newUrl(name) { } function baseUrl() { - return location.href.split('?')[0]; + return location.href.split(/[?#]/)[0]; } function baseName(url) {