Merge pull request #5033 from BenLubar/page-removed-from-url

Include page number in redirected topics
This commit is contained in:
Barış Soner Uşaklı
2016-09-30 22:23:11 +03:00
committed by GitHub

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);
}