title: how can i return to page with same search filters
body: <p>In cakephp I can add search filters and change the post vars into Get as below. This works fine.
  My problem is how do go to another page found from the list of searches and return to the same page? All search filters are gone  when i return as I am not storing them.</p>
  
  <p>eg I search for invoice 2 and get a list of searches. i click on link from the search and view a page. I then want to return to the same page with same page number  for invoice 2?</p>
  
  <p>if (($this->request->is('post') ||$this->request->is('put'))&amp;&amp; isset($this->request->data['filter'])) {</p>
  
  <pre><code>       $filter_url['controller'] = $this-&gt;request-&gt;params['controller'];
         $filter_url['action'] = $this-&gt;request-&gt;params['action'];
         $filter_url['page'] = 1;
  
  // for each filter we will add a GET parameter for the generated url
  foreach($this-&gt;data['Filter'] as $name =&gt; $value){
     if($value){
         $filter_url[$name] = urlencode($value);
     }
  }   
  //Post params are now GET paramaters
  return $this-&gt;redirect($filter_url);    
     }//isset   
  </code></pre>