Skip to content

Commit

Permalink
Minor: redirect to home page for signin route when user is already lo…
Browse files Browse the repository at this point in the history
…gged in (#14915)

* Minor: redirect to home page for signin route when used is already logged in

* added more routes to redirect to home page
  • Loading branch information
ShaileshParmar11 authored Jan 29, 2024
1 parent db7db07 commit 09b5bcc
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,16 @@ const AuthenticatedAppRouter: FunctionComponent = () => {
)}
/>
{routeElements}
<Route
exact
path={[
ROUTES.SIGNIN,
ROUTES.REGISTER,
ROUTES.SIGNIN,
ROUTES.FORGOT_PASSWORD,
]}>
<Redirect to={ROUTES.MY_DATA} />
</Route>
<Route exact component={PageNotFound} path={ROUTES.NOT_FOUND} />
<Redirect to={ROUTES.NOT_FOUND} />
</Switch>
Expand Down

0 comments on commit 09b5bcc

Please sign in to comment.