Browse Source

fix search pagination

pull/8/head
d47081 2 years ago
parent
commit
2a7b066368
  1. 8
      public/index.php

8
public/index.php

@ -82,6 +82,10 @@ if (!in_array($page, [0, 1])) {
} else { } else {
$newer = ($ns ? $ns . '/' . ($page - 1) : ($page - 1)); $newer = ($ns ? $ns . '/' . ($page - 1) : ($page - 1));
} }
if ($query) {
$newer = $newer . '?q=' . $query;
}
} }
if ($data) { if ($data) {
@ -90,6 +94,10 @@ if ($data) {
} else { } else {
$older = ($ns ? $ns . '/' . ($page + 1) : ($page + 1)); $older = ($ns ? $ns . '/' . ($page + 1) : ($page + 1));
} }
if ($query) {
$older = $older . '?q=' . $query;
}
} }
if ($ns) { if ($ns) {

Loading…
Cancel
Save