From 3132f0987208867bfc35f35cfe9eb20aff630c3b Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Mon, 16 Dec 2024 13:06:55 -0500 Subject: [PATCH] fix(router): Add missing normalizeUrl to rr6 useNavigate --- static/app/utils/useNavigate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/app/utils/useNavigate.tsx b/static/app/utils/useNavigate.tsx index 2145b973b88faf..94b51b82f81883 100644 --- a/static/app/utils/useNavigate.tsx +++ b/static/app/utils/useNavigate.tsx @@ -40,7 +40,7 @@ export function useNavigate(): ReactRouter3Navigate { (to: LocationDescriptor | number, options: NavigateOptions = {}) => typeof to === 'number' ? router6Navigate(to) - : router6Navigate(locationDescriptorToTo(to), options), + : router6Navigate(locationDescriptorToTo(normalizeUrl(to)), options), [router6Navigate] );