From ae38a78bb6c8562692a9a854ea9aade8b0998615 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 29 Nov 2016 15:54:28 -0500 Subject: [PATCH] FIX: Categories default page was broken --- app/assets/javascripts/discourse/mapping-router.js.es6 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/mapping-router.js.es6 b/app/assets/javascripts/discourse/mapping-router.js.es6 index 1e7c493332d..31d7c2c2eaf 100644 --- a/app/assets/javascripts/discourse/mapping-router.js.es6 +++ b/app/assets/javascripts/discourse/mapping-router.js.es6 @@ -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) {