We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95d6a87 commit cfd1a18Copy full SHA for cfd1a18
packages/react-router/index.tsx
@@ -884,7 +884,7 @@ export function matchPath(
884
let matchedPathname = match[1];
885
let values = match.slice(2);
886
let params = paramNames.reduce((memo, paramName, index) => {
887
- memo[paramName] = safelyDecodeURIComponent(values[index], paramName);
+ memo[paramName] = safelyDecodeURIComponent(values[index] || '', paramName);
888
return memo;
889
}, {} as Params);
890
0 commit comments