From d26a514e8e0b7c6e575e0919c627e974d4725a6c 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 --- 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 228ce279ac..09b0e6bab3 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);