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(