Redirect correctly
This commit is contained in:
parent
3a73a327c3
commit
fa34c5d8f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue