This is an automated email from the ASF dual-hosted git repository.

ppawar pushed a commit to branch atlas-2.5
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/atlas-2.5 by this push:
     new 56acc8007 ATLAS-5081: React UI all API's are failing when accessing 
through KNOX. (#414)
56acc8007 is described below

commit 56acc800788100f70a74d9fea03ebdae64661d72
Author: Prasad Pawar <[email protected]>
AuthorDate: Tue Jul 29 10:52:20 2025 +0530

    ATLAS-5081: React UI all API's are failing when accessing through KNOX. 
(#414)
---
 dashboard/src/api/apiUrlLinks/commonApiUrl.ts | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dashboard/src/api/apiUrlLinks/commonApiUrl.ts 
b/dashboard/src/api/apiUrlLinks/commonApiUrl.ts
index a2aba3ac1..837f09994 100644
--- a/dashboard/src/api/apiUrlLinks/commonApiUrl.ts
+++ b/dashboard/src/api/apiUrlLinks/commonApiUrl.ts
@@ -15,9 +15,11 @@
  * limitations under the License.
  */
 
-export const apiBaseurl = window.location.origin;
-const baseUrl = apiBaseurl + "/api/atlas";
-const baseUrlV2 = apiBaseurl + "/api/atlas/v2";
+import { getBaseUrl } from "@utils/Utils";
+
+export const apiBaseurl = window.location.pathname;
+const baseUrl = getBaseUrl(apiBaseurl) + "/api/atlas";
+const baseUrlV2 = getBaseUrl(apiBaseurl) + "/api/atlas/v2";
 
 const getBaseApiUrl = (url: string) => {
   if (url == "url") {

Reply via email to