From 89da7e9fdd929e647d4a5dc021a537caae8e96a4 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 10 Sep 2024 15:08:16 +0200 Subject: [PATCH] keep query parameters when changing routes (#32762) fixes: #32736 Signed-off-by: Erik Jan de Wit (cherry picked from commit d26a514e8e0b7c6e575e0919c627e974d4725a6c) --- js/apps/account-ui/src/root/PageNav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/apps/account-ui/src/root/PageNav.tsx b/js/apps/account-ui/src/root/PageNav.tsx index 228ce279acd0..09b0e6bab35f 100644 --- a/js/apps/account-ui/src/root/PageNav.tsx +++ b/js/apps/account-ui/src/root/PageNav.tsx @@ -137,7 +137,7 @@ export const NavLink = ({ isActive, children, }: PropsWithChildren) => { - const menuItemPath = getFullUrl(path); + const menuItemPath = getFullUrl(path) + `?${location.search}`; const href = useHref(menuItemPath); const handleClick = useLinkClickHandler(menuItemPath);