Skip to content

Commit

Permalink
redirect / to /home
Browse files Browse the repository at this point in the history
  • Loading branch information
walker-sean committed Sep 12, 2024
1 parent 1b2023b commit 285c626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/src/app/AppAuthenticated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const AppAuthenticated: React.FC<AppAuthenticatedProps> = ({ userId, userRole })
<Route path={routes.FINANCE} component={Finance} />
<Route path={routes.CALENDAR} component={Calendar} />
<Route exact path={routes.HOME} component={Home} />
<Redirect from={routes.BASE} to={routes.HOME} />
<Route path="*" component={PageNotFound} />
</Switch>
</Container>
Expand Down
2 changes: 2 additions & 0 deletions src/frontend/src/utils/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

/**************** General Section ****************/
const BASE = `/`;
const HOME = `/home`;
const LOGIN = `/login`;
const INFO = `/info`;
Expand Down Expand Up @@ -56,6 +57,7 @@ const DESIGN_REVIEW_BY_ID = CALENDAR + `/:id`;
const ORGANIZATIONS = `/organizations`;

export const routes = {
BASE,
HOME,
LOGIN,
INFO,
Expand Down

0 comments on commit 285c626

Please sign in to comment.