From 7d90a94261c8c75c53ec8724c93e44bc94a884a5 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Wed, 14 Sep 2016 20:57:51 -0500 Subject: [PATCH] Include page number in redirected topics --- src/controllers/topics.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index 9d106a85f2..8e4dd1d518 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -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); }