keep query parameters when changing routes (#32762)

fixes: #32736

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-09-10 15:08:16 +02:00 committed by GitHub
parent c466ea728d
commit d26a514e8e
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);