From 4d519744cb6f93cc8628ab7b3c17a75aca9d3d06 Mon Sep 17 00:00:00 2001 From: littlemilk Date: Wed, 24 Sep 2025 15:37:16 +0800 Subject: [PATCH] fix: filer ui create folder with jwt token error --- weed/server/filer_ui/filer.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', '');