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

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

commit 77314ac38a7634431694cc6ec3a28e5da6e7882e
Author: Prasad Pawar <prasad.pa...@freestoneinfotech.com>
AuthorDate: Fri Jul 25 13:48:07 2025 +0530

    ATLAS-5081: React UI all API's are failing when accessing through KNOX.
---
 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