title: CakePHP Pagination Routing Issues
body: <p>Within CakePHP 2 I am using pagination which works great until I see the URL which is page:2, how can I make this ?page=2 ?</p>
  
  <p>The next question is that I use this code for my controller which powers /domain.com/offers/top, /domain.com/offers/newest, /domain.com/offers/popular and then the categories like /domain.com/offers/tv-and-video. The thing is when it is paginated for /domain.com/offers/top instead of being /offers/top/page:2 it goes to /offers/bycategory/top/page:2.</p>
  
  <pre><code> public function bycategory($slug = null)
  {
  
      $userId = $this-&gt;Session-&gt;read("UserAuth.User.id");
      if ($slug == 'top') {
          //Get the top rated offers
          $this-&gt;paginate = array(
              'limit' =&gt; 15,
              'order' =&gt; array(
                  'Offer.vote' =&gt; 'desc'
              )
          );
      } elseif ($slug == 'newest') {
          //Get the latest offers
          $this-&gt;paginate = array(
  
              'limit' =&gt; 15,
              'order' =&gt; array(
                  'Offer.created' =&gt; 'desc'
              )
          );
      } elseif ($slug == 'popular') {
          //Get the most talked about offers
      } else {
  
          //This is the categories, so just get the category slug.
          $this-&gt;paginate = array(
              'conditions' =&gt; array('Category.slug =' =&gt; $slug),
              'limit' =&gt; 15,
              'order' =&gt; array(
                  'Offer.created' =&gt; 'desc'
              )
          );
  
  
      }
  
  
      $offers = $this-&gt;paginate('Offer');
  
      // pass the value to our view.ctp
      $this-&gt;set('offers', $offers);
      $this-&gt;set('userId', $userId);
  
      $this-&gt;render('/Offers/index');
  
  
  }
  </code></pre>
  
  <p>This is my custom route:</p>
  
  <pre><code>Router::connect(
  '/offers/:catslug',
  array('controller' =&gt; 'offers', 'action' =&gt; 'bycategory'),
  array(
  
      'pass' =&gt; array('catslug')
  
  ));
  </code></pre>