From 73410ad159ea81195406c60831dbecae988bd4aa Mon Sep 17 00:00:00 2001 From: ali rahimi Date: Thu, 23 Jan 2025 21:13:16 +0100 Subject: [PATCH] json post base path bug fixed --- web/assets/js/util/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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});