mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 20:06:19 +00:00
Minor: redirect to home page for signin route when user is already logged in (#14915)
* Minor: redirect to home page for signin route when used is already logged in * added more routes to redirect to home page
This commit is contained in:
parent
db7db07812
commit
09b5bcc97c
@ -1346,6 +1346,16 @@ const AuthenticatedAppRouter: FunctionComponent = () => {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
{routeElements}
|
{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} />
|
<Route exact component={PageNotFound} path={ROUTES.NOT_FOUND} />
|
||||||
<Redirect to={ROUTES.NOT_FOUND} />
|
<Redirect to={ROUTES.NOT_FOUND} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user