Update server injected subpath detection

This commit is contained in:
schroda
2025-09-24 23:13:29 +02:00
parent a2d7091712
commit ad3b8d4567
6 changed files with 54 additions and 97 deletions

View File

@@ -19,7 +19,7 @@ import { AppPageHistoryContextProvider } from '@/base/contexts/AppPageHistoryCon
import { AppThemeContextProvider } from '@/features/theme/AppThemeContext.tsx';
import { NavBarContextProvider } from '@/features/navigation-bar/NavbarContext.tsx';
import { SessionContextProvider } from '@/features/authentication/SessionContext.tsx';
import { SubpathConfig } from '@/lib/utils/SubpathConfig.ts';
import { SubpathUtil } from '@/lib/utils/SubpathUtil.ts';
interface Props {
children: React.ReactNode;
@@ -27,7 +27,7 @@ interface Props {
export const AppContext: React.FC<Props> = ({ children }) => (
<SessionContextProvider>
<Router basename={SubpathConfig.getRouterBasename()}>
<Router basename={SubpathUtil.getRouterBasename()}>
<StyledEngineProvider injectFirst>
<AppThemeContextProvider>
<QueryParamProvider adapter={ReactRouter6Adapter}>