mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Categories default page was broken
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user