Keep filter when clicking pager links
authorChristian Weiske <cweiske@cweiske.de>
Wed, 26 Jul 2017 13:03:58 +0000 (15:03 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 26 Jul 2017 13:03:58 +0000 (15:03 +0200)
Resolves: https://github.com/cweiske/phinde/issues/33

www/index.php

index 33adfb0..da7b27c 100644 (file)
@@ -98,7 +98,7 @@ $timeEnd = microtime(true);
 
 $pager = new Html_Pager(
     $res->hits->total, $perPage, $page + 1,
-    $baseLink
+    buildLink($baseLink, $filters, null, null)
 );
 
 foreach ($res->hits->hits as &$hit) {