u
This commit is contained in:
@@ -29,11 +29,26 @@ import KundeNeuPage from './routes/kunde/neu';
|
||||
import KundeGruppenPage from './routes/kunde/gruppen';
|
||||
import KundeEditPage from './routes/kunde/_entityId';
|
||||
import StatisticsPage from './routes/infos/StatisticsPage';
|
||||
import OAuthAuthorizePage from './routes/oauth/OAuthAuthorizePage';
|
||||
|
||||
const ArticleHistoryPage = lazy(() => import('./routes/infos/ArticleHistoryPage'));
|
||||
const GlobalHistoryPage = lazy(() => import('./routes/infos/GlobalHistoryPage'));
|
||||
|
||||
function LoginRedirect() {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const returnTo = params.get('returnTo');
|
||||
return <Navigate to={returnTo || '/artikel'} replace />;
|
||||
}
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/oauth/authorize',
|
||||
element: <OAuthAuthorizePage />,
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
element: <LoginRedirect />,
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
element: <AppShell />,
|
||||
|
||||
Reference in New Issue
Block a user