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 0bf536e commit 07b4972Copy full SHA for 07b4972
modules/Route.js
@@ -67,7 +67,7 @@ class Route {
67
if (PathUtils.isAbsolute(path)) {
68
if (parentRoute) {
69
invariant(
70
- parentRoute.paramNames.length === 0,
+ path === parentRoute.path || parentRoute.paramNames.length === 0,
71
'You cannot nest path "%s" inside "%s"; the parent requires URL parameters',
72
path, parentRoute.path
73
);
0 commit comments