landscape/grid: Prevent cen from breaking react router in grid's leap
@@ -111,7 +111,10 @@ export const Leap = React.forwardRef(
const navigateByInput = useCallback(
(input: string) => {
- const normalizedValue = input.trim().replace(/(~?[\w^_-]{3,13})\//, '$1/apps/$1/');
+ const normalizedValue = input
+ .trim()
+ .replace('%', '')
+ .replace(/(~?[\w^_-]{3,13})\//, '$1/apps/$1/');
push(`/leap/${menu}/${normalizedValue}`);
},
[menu]
