aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittlemilkwu <44579618+littlemilkwu@users.noreply.github.com>2025-11-27 04:35:08 +0800
committerGitHub <noreply@github.com>2025-11-26 12:35:08 -0800
commit0653394ec6703e5dbca774ad558d1c37345f6fd4 (patch)
tree4c5af2da54c8abc980dc1d48d377c30e01b62f6f
parent3ab26e39ff7ed952dd33826a00b77bb03ab20427 (diff)
downloadseaweedfs-0653394ec6703e5dbca774ad558d1c37345f6fd4.tar.xz
seaweedfs-0653394ec6703e5dbca774ad558d1c37345f6fd4.zip
fix(filer-ui): support folder creation with JWT token in URL (#7271)
fix: filer ui create folder with jwt token error
-rw-r--r--weed/server/filer_ui/filer.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html
index 627f3ba77..be0eea8fd 100644
--- a/weed/server/filer_ui/filer.html
+++ b/weed/server/filer_ui/filer.html
@@ -315,7 +315,7 @@
if (dirName == null || dirName == '') {
return;
}
- var baseUrl = window.location.href;
+ var baseUrl = window.location.origin + window.location.pathname;
if (!baseUrl.endsWith('/')) {
baseUrl += '/';
}
@@ -323,6 +323,7 @@
if (!url.endsWith('/')) {
url += '/';
}
+ url += window.location.search;
var xhr = new XMLHttpRequest();
xhr.open('POST', url, false);
xhr.setRequestHeader('Content-Type', '');