From 2a7b06636892900c7bb2d426f33564624633f48b Mon Sep 17 00:00:00 2001 From: d47081 Date: Fri, 15 Jul 2022 20:25:19 +0300 Subject: [PATCH] fix search pagination --- public/index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/index.php b/public/index.php index 4760aca..dc28e30 100755 --- a/public/index.php +++ b/public/index.php @@ -82,6 +82,10 @@ if (!in_array($page, [0, 1])) { } else { $newer = ($ns ? $ns . '/' . ($page - 1) : ($page - 1)); } + + if ($query) { + $newer = $newer . '?q=' . $query; + } } if ($data) { @@ -90,6 +94,10 @@ if ($data) { } else { $older = ($ns ? $ns . '/' . ($page + 1) : ($page + 1)); } + + if ($query) { + $older = $older . '?q=' . $query; + } } if ($ns) {