@ -49,10 +49,19 @@ Controllers.home = function(req, res, next) {
Controllers.recent.get(req, res, next);
} else if (route === 'popular') {
Controllers.popular.get(req, res, next);
} else {
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);
res.redirect(route);
}
});
};