FIX: Categories default page was broken

This commit is contained in:
Robin Ward 2016-11-29 15:54:28 -05:00
parent 4e251eaf08
commit ae38a78bb6
1 changed files with 4 additions and 2 deletions

View File

@ -17,9 +17,11 @@ class RouteNode {
this.childrenByName = {};
this.paths = {};
if (opts.path) {
this.paths[opts.path] = true;
if (!opts.path) {
opts.path = name;
}
this.paths[opts.path] = true;
}
route(name, opts, fn) {