diff -r 4a3899b6a7ed -r 766af1228b05 server/src/app/Providers/PaginationServiceProvider.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/src/app/Providers/PaginationServiceProvider.php Sun Oct 16 23:19:57 2016 +0530 @@ -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); + }); + + } +}