diff -r 226d5b17a119 -r 13564bb13ccc server/src/app/Providers/PaginationServiceProvider.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/src/app/Providers/PaginationServiceProvider.php Tue Oct 11 16:39:11 2016 +0200 @@ -0,0 +1,32 @@ +app['request']; + $queryParams = $r->all(); + unset($queryParams[config('corpusparole.pagination_page_param')]); + + $question = $r->getBaseUrl().$r->getPathInfo() == '/' ? '/?' : '?'; + return $r->url().$question.http_build_query($queryParams); + }); + + } +}