Permalink
Browse files

Fixed #2916

  • Loading branch information...
Geert De Deckere
Geert De Deckere committed Jun 6, 2010
1 parent 6c89e72 commit ba9dc605cbfb000fff147ec042b69e8d8a6199a6
Showing with 6 additions and 0 deletions.
  1. +6 −0 classes/kohana/pagination.php
@@ -178,6 +178,12 @@ public function url($page = 1)
// Clean the page number
$page = max(1, (int) $page);
+ // No page number in URLs to first page
+ if ($page === 1)
+ {
+ $page = NULL;
+ }
+
switch ($this->config['current_page']['source'])
{
case 'query_string':

0 comments on commit ba9dc60

Please sign in to comment.