title: How to redirect in CakePHP with # in url, and not %23?
body: <p>I am using CakePHP and I am doing this:</p>
  
  <pre><code>$this-&gt;redirect(array('controller' =&gt; 'users', 'action' =&gt; 'view',$id));
  </code></pre>
  
  <p>output in the browser: .../users/view/42</p>
  
  <p>Since I am using JQueryUI tabs, I want the user to be redirected to the tab he just edited, so it should looks something like :</p>
  
  <pre><code> $this-&gt;redirect(array('controller' =&gt; 'users', 'action' =&gt; 'view',$id."#groups"));
  </code></pre>
  
  <p>output in the browser: .../users/view/42%23groups</p>
  
  <p>But expected result: .../users/view/42#groups</p>
  
  <p><strong>Q: How to send a correct url with #id in it to send the focus ?</strong></p>
  
  <p><em>I want, if possible, not use a custom GET param that echo a js in the view.ctp to get the focus asked.</em></p>
  
  <p><em>I hope it is a CakePHP issue and don't need to change some .htaccess like (<a href="https://stackoverflow.com/questions/2438509/how-to-rewrite-a-url-with-23-in-it">How to rewrite a URL with %23 in it?</a>)</em></p>