mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 08:20:36 +01:00
Include page number in redirected topics
This commit is contained in:
@@ -58,6 +58,9 @@ topicsController.get = function(req, res, callback) {
|
|||||||
if (req.params.post_index){
|
if (req.params.post_index){
|
||||||
url += '/'+req.params.post_index;
|
url += '/'+req.params.post_index;
|
||||||
}
|
}
|
||||||
|
if (currentPage > 1) {
|
||||||
|
url += '?page=' + currentPage;
|
||||||
|
}
|
||||||
return helpers.redirect(res, url);
|
return helpers.redirect(res, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user