Skip to content

Commit

Permalink
Merge pull request #482 from MTES-MCT/fix-redirect-home
Browse files Browse the repository at this point in the history
fix: fix redirection to ulam homepage after login
  • Loading branch information
lwih authored Jan 8, 2025
2 parents cf3eea1 + f5b9f62 commit 21368ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/v2/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Home2: FC = () => {
useEffect(() => {
if (isAuthenticated) {
const user = isLoggedIn()
navigate(`/${ROUTES[user?.roles[0] || RoleType.USER_PAM]}/missions`, { replace: true })
navigate(`/v2/${ROUTES[user?.roles[0] || RoleType.USER_PAM]}/missions`, { replace: true })
} else {
navigate('/login', { replace: true })
}
Expand Down

0 comments on commit 21368ce

Please sign in to comment.