From 07b497258569e401cb9876db22ad4a837f5f0848 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 25 Feb 2015 09:16:19 -0800 Subject: [PATCH] [fixed] Allow repetition in child paths Allow nested s to repeat the initial portion of their parent. Fixes #867 --- modules/Route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Route.js b/modules/Route.js index 114f2d372e..ae313cfd0c 100644 --- a/modules/Route.js +++ b/modules/Route.js @@ -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 );