From fa34c5d8f5effaf38f411dc44c7c9d70954ef851 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sat, 5 Jul 2025 21:48:55 +0200 Subject: [PATCH] Redirect correctly --- ui/src/components/ProtectedRoute.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";