title: CakePHP: Remove "page:#" from url params
body: <p>I have a search form using the <code>get</code> method. The form works fine until I use it after paginating through the results.</p>
  
  <p>Users can enter the site from any number of urls that look like <code>domain.com/serach/results/something/something_else/</code> the important part is the <code>domain.com/serach/results/</code>.</p>
  
  <p>Here's what my code for the the form looks like:</p>
  
  <pre><code>echo $this-&gt;Form-&gt;create(null, array(
      'type' =&gt; 'get',
      'url' =&gt; $this-&gt;Html-&gt;url(null, true),
  ));
  </code></pre>
  
  <p>This will make the form look like this:</p>
  
  <pre><code>&lt;form action="http://domain.com/serach/results/something/something_else/" method="get"&gt;
  </code></pre>
  
  <p>The problem is that when I paginate the results it adds the page:2 or page:3 to the action so it looks like:</p>
  
  <pre><code>&lt;form action="http://domain.com/serach/results/something/something_else/page:3" method="get"&gt;
  </code></pre>
  
  <p>Is there a built in function in CakePHP that lets me remove the <code>page:3</code>from the url that's being passed to the form action or am I going to have to create a function that looks for and removes the <code>page:#</code>? </p>