You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by pp...@apache.org on 2025/07/25 09:03:58 UTC

(atlas) branch ATLAS-5081 created (now 77314ac38)

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

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


      at 77314ac38 ATLAS-5081: React UI all API's are failing when accessing through KNOX.

This branch includes the following new commits:

     new 77314ac38 ATLAS-5081: React UI all API's are failing when accessing through KNOX.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(atlas) 01/01: ATLAS-5081: React UI all API's are failing when accessing through KNOX.

Posted by pp...@apache.org.
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 <pr...@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") {