Skip to content

Commit

Permalink
Merge pull request #176 from saimaz/pagination_fix
Browse files Browse the repository at this point in the history
Fixed first page pagination when page parameter is forced in controller
  • Loading branch information
saimaz committed May 28, 2016
2 parents cb294a4 + 57f51aa commit 3b2e1e4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Twig/PagerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ public function path($route, $page, array $parameters = [])
unset($parameters['_page']);
}

// Do not include default values into parameters.
if ($page <= 1) {
return $this->router->generate($route, $parameters);
}

$parameters[$fieldName] = $page;

return $this->router->generate($route, $parameters);
Expand Down

0 comments on commit 3b2e1e4

Please sign in to comment.