title: jQuery how to remove # from url
body: <p>My url generates like this: only shows in ie9</p>
  
  <pre><code>http://myurl.com/#/categories/posts
  </code></pre>
  
  <p>how do I remove # from url and make it like <code>http://myurl.com/categories/posts</code> on rest of my pages? thanks.</p>
  
  <p>can i use like this? how can I detect # cause front page has no #.</p>
  
  <pre><code>if ($.browser.msie  &amp;&amp; parseInt($.browser.version, 10) === 9 &amp;&amp; window.location.href.indexOf("#")) 
      {
          document.location.href = String( document.location.href ).replace( /#/, "" );
      }
  </code></pre>
  
  <p>to remove #/ used <code>.replace( /#\//, "" );</code> as mentioned Kevin B</p>