Include page number in redirected topics

This commit is contained in:
Ben Lubar
2016-09-14 20:57:51 -05:00
parent a42d8c5be2
commit 7d90a94261

View File

@@ -58,6 +58,9 @@ topicsController.get = function(req, res, callback) {
if (req.params.post_index){
url += '/'+req.params.post_index;
}
if (currentPage > 1) {
url += '?page=' + currentPage;
}
return helpers.redirect(res, url);
}