Redirect correctly

This commit is contained in:
Arthur Belleville 2025-07-05 21:48:55 +02:00
parent 3a73a327c3
commit fa34c5d8f5
No known key found for this signature in database

View file

@ -48,7 +48,7 @@ export const ProtectedRoute = ({
const redirectUrl = shouldRedirectToCurrentPage
? `${fallback ?? "/login"}?redirect=${encodeURIComponent(
window.location.pathname
`${window.location.pathname}${window.location.search}`
)}`
: fallback ?? "/login";