From 04cf250a547bb64265d256e7d15af7cea5ecfa67 Mon Sep 17 00:00:00 2001 From: Ali Rahimi Date: Thu, 23 Jan 2025 21:33:47 +0100 Subject: json post base path bug fixed (#2647) * json post base path bug fixed * added comment field to group client management --- web/assets/js/util/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/assets/js') diff --git a/web/assets/js/util/utils.js b/web/assets/js/util/utils.js index 28ec95c7..10825490 100644 --- a/web/assets/js/util/utils.js +++ b/web/assets/js/util/utils.js @@ -81,7 +81,7 @@ class HttpUtil { }, body: JSON.stringify(data), }; - const resp = await fetch(url, requestOptions); + const resp = await fetch(basePath + url.replace(/^\/+|\/+$/g, ''), requestOptions); const response = await resp.json(); msg = this._respToMsg({data : response}); -- cgit v1.2.3