From 14e211fb68534ec88e1035bd65eecf13087a8c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 8 Apr 2021 13:02:40 -0400 Subject: [PATCH] fix: #9473 (#9476) --- src/controllers/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index b04dd7b564..673f6e8168 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -118,7 +118,7 @@ function calculateStartStop(page, postIndex, settings) { let startSkip = 0; if (!settings.usePagination) { - if (postIndex !== 0) { + if (postIndex > 1) { page = 1; } startSkip = Math.max(0, postIndex - Math.ceil(settings.postsPerPage / 2));