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) {