From db979dd44abc95c2c999470ac49e7be1f4e9d5ed Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Wed, 14 May 2025 19:06:30 +0530 Subject: [PATCH] fix(ui): ignore basePath static value for dev mode (#21190) --- .../src/main/resources/ui/src/utils/HistoryUtils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/HistoryUtils.ts b/openmetadata-ui/src/main/resources/ui/src/utils/HistoryUtils.ts index 3214bc54e6a..338c5dcf0ff 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/HistoryUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/src/utils/HistoryUtils.ts @@ -14,7 +14,9 @@ import { createBrowserHistory } from 'history'; export const getBasePath = () => { - return window.BASE_PATH?.slice(0, -1) ?? ''; + return window.BASE_PATH !== '${basePath}' + ? window.BASE_PATH?.slice(0, -1) ?? '' + : ''; }; export const history = createBrowserHistory(