mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 11:21:51 +02:00
Merge pull request #4859 from BenLubar/topic-page-query
Fix /topic/:tid/:slug?page=:page for users with infinite scroll enabled
This commit is contained in:
@@ -97,7 +97,9 @@ topicsController.get = function(req, res, callback) {
|
||||
req.params.post_index = 0;
|
||||
}
|
||||
if (!settings.usePagination) {
|
||||
currentPage = 1;
|
||||
if (req.params.post_index !== 0) {
|
||||
currentPage = 1;
|
||||
}
|
||||
if (reverse) {
|
||||
postIndex = Math.max(0, postCount - (req.params.post_index || postCount) - Math.ceil(settings.postsPerPage / 2));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user