/**
  * Generates the full URL for a certain page.
  *
  * @param   integer  page number
  * @return  string   page URL
  */
 public function url($page = 1)
 {
     $url = mb_strtolower(parent::url($page));
     //removing the parameter rel=ajax just in case
     $url = str_replace(array('&rel=ajax', 'rel=ajax&', 'rel=ajax'), '', $url);
     return $url;
 }
Exemple #2
0
 /**
  * Generates the full URL for a certain page.
  *
  * @param   integer  page number
  * @return  string   page URL
  */
 public function url($page = 1)
 {
     if ($this->config['current_page']['source'] == 'query_string' && ($url = Arr::get($this->config, 'url'))) {
         // Clean the page number
         $page = max(1, (int) $page);
         // No page number in URLs to first page
         if ($page === 1) {
             $page = NULL;
         }
         return URL::site($url) . URL::query(array($this->config['current_page']['key'] => $page));
     }
     return parent::url($page);
 }