Skip to content

Commit

Permalink
Redirect from root to event calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
Alf-Melmac committed Dec 29, 2023
1 parent e0d7673 commit 58b6ee3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {RouteObject} from 'react-router-dom';
import {Navigate, RouteObject} from 'react-router-dom';
import {eventRoutes} from './features/event/EventRoutes';
import {profileRoutes} from './features/profile/ProfileRoutes';
import {adminRoutes} from './features/admin/AdminRoutes';
Expand Down Expand Up @@ -46,6 +46,10 @@ export const routes: RouteObject[] = [
element: <SessionExpired/>,
}],
},
{
path: '/',
element: <Navigate to={'/events'} replace/>
},
{
path: '*',
element: <StandardPage/>,
Expand Down

0 comments on commit 58b6ee3

Please sign in to comment.