This is an automated email from the ASF dual-hosted git repository.
ppawar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new 7f288082e ATLAS-5081: React UI all API's are failing when accessing
through KNOX. (#414)
7f288082e is described below
commit 7f288082e45909d389383c37be846f1be928d861
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") {