fix(ui): ignore basePath static value for dev mode (#21190)

This commit is contained in:
Chirag Madlani 2025-05-14 19:06:30 +05:30 committed by GitHub
parent 94ba520111
commit db979dd44a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,9 @@
import { createBrowserHistory } from 'history'; import { createBrowserHistory } from 'history';
export const getBasePath = () => { 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( export const history = createBrowserHistory(