Skip to content

Commit

Permalink
[fixed] Allow repetition in child paths
Browse files Browse the repository at this point in the history
Allow nested <Route>s to repeat the initial portion of their
parent.

Fixes remix-run#867
  • Loading branch information
mjackson committed Feb 25, 2015
1 parent 0bf536e commit 07b4972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Route {
if (PathUtils.isAbsolute(path)) {
if (parentRoute) {
invariant(
parentRoute.paramNames.length === 0,
path === parentRoute.path || parentRoute.paramNames.length === 0,
'You cannot nest path "%s" inside "%s"; the parent requires URL parameters',
path, parentRoute.path
);
Expand Down

0 comments on commit 07b4972

Please sign in to comment.