From af95ea1cd740683e0355417cff97fb786c927cb5 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 28 Dec 2024 09:53:59 +0800 Subject: [PATCH] fix: webui can't handle hash property of URL well (#515) --- 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) {