diff --git a/ui/src/components/ProtectedRoute.tsx b/ui/src/components/ProtectedRoute.tsx index a2eb9aa..45d5a02 100644 --- a/ui/src/components/ProtectedRoute.tsx +++ b/ui/src/components/ProtectedRoute.tsx @@ -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";