Node.js based forum software built for the modern web
Don't change url when homepage is set to a category.
yariplus12fb512d3c1e
diff --git a/src/controllers/index.js b/src/controllers/index.jsindex f418c16572..fa414e1db5 100644--- a/src/controllers/index.js+++ b/src/controllers/index.js@@ -50,7 +50,16 @@ Controllers.home = function(req, res, next) {} else if (route === 'popular') {Controllers.popular.get(req, res, next);} else {- res.redirect(route);+ var match = /^category\/(\d+)\/(.*)$/.exec(route);++ if (match) {+ req.params.topic_index = "1";+ req.params.category_id = match[1];+ req.params.slug = match[2];+ Controllers.categories.get(req, res, next);+ } else {+ res.redirect(route);+ }}}});