Skip to content

Commit

Permalink
Fix the defect that show :page where use custom route rules and the p…
Browse files Browse the repository at this point in the history
…age=1
  • Loading branch information
macnie committed Jul 4, 2015
1 parent e31538a commit a6a774b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/PaginatorHelper.php
Expand Up @@ -435,7 +435,7 @@ public function generateUrl(array $options = [], $model = null, $full = false)
$url = array_merge($url, $options);

if (!empty($url['page']) && $url['page'] == 1) {
$url['page'] = null;
$url['page'] = false;
}
if (isset($paging['sortDefault'], $paging['directionDefault'], $url['sort'], $url['direction']) &&
$url['sort'] === $paging['sortDefault'] &&
Expand Down

0 comments on commit a6a774b

Please sign in to comment.