Skip to content

Commit

Permalink
fix(router): Add missing normalizeUrl to rr6 useNavigate (#82163)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored Jan 2, 2025
1 parent 99ce1e9 commit 65a4857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/app/utils/useNavigate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);

Expand Down

0 comments on commit 65a4857

Please sign in to comment.