From af64e0d2c6b438c8d33cf75b1f1681df401a490a Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 28 Dec 2024 09:46:40 +0800 Subject: [PATCH] fix: webui can't handle hash property of URL well --- assets/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {