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 62bd43f commit 903b123Copy full SHA for 903b123
1 file changed
packages/react-router/src/ReactRouter/utils/pathMatching.ts
@@ -80,7 +80,7 @@ export const matchPath = ({ pathname, componentProps }: MatchPathOptions): PathM
80
return {
81
...match,
82
pathname: pathname,
83
- pathnameBase: match.pathnameBase === '/' ? '' : match.pathnameBase.slice(1),
+ pathnameBase: match.pathnameBase === '/' ? '/' : match.pathnameBase.slice(1),
84
pattern: {
85
...match.pattern,
86
path: path,
0 commit comments