mirror of
https://github.com/discourse/discourse.git
synced 2025-09-09 12:21:04 +08:00
FIX: Categories default page was broken
This commit is contained in:
parent
4e251eaf08
commit
ae38a78bb6
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue