keep query parameters when changing routes (#32762) (#32856)

Closes #32736

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
(cherry picked from commit d26a514e8e0b7c6e575e0919c627e974d4725a6c)
This commit is contained in:
Erik Jan de Wit 2024-09-27 16:24:23 +02:00 committed by GitHub
parent 3af1fb04f1
commit c36eb8a952
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -137,7 +137,7 @@ export const NavLink = ({
isActive,
children,
}: PropsWithChildren<NavLinkProps>) => {
const menuItemPath = getFullUrl(path);
const menuItemPath = getFullUrl(path) + `?${location.search}`;
const href = useHref(menuItemPath);
const handleClick = useLinkClickHandler(menuItemPath);