We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fb183d commit b60b5eaCopy full SHA for b60b5ea
1 file changed
modules/RouteNode.js
@@ -197,7 +197,10 @@ export default class RouteNode {
197
let segments = [];
198
segments.params = {};
199
200
- return matchChildren(startingNodes, path, segments);
+ const matched = matchChildren(startingNodes, path, segments);
201
+ if (matched && matched.length === 1 && matched[0].name === '') return null;
202
+
203
+ return matched;
204
}
205
206
getPathFromSegments(segments) {
0 commit comments