title: jQuery ajax navigation with ? instead of #
body: <p>So here is what I need to do.</p>
  
  <p>I have a web app that needs to work with these kind of URLs:</p>
  
  <pre><code>http://app.com/?this_is_similar_to_anchor
  </code></pre>
  
  <p>By default, I can use window.location.hash and just use the # to change things on the URL. But I noticed a few websites are using a question mark instead of hash. And this is what I need.</p>
  
  <p>Why do I need it?</p>
  
  <p>I need to send whatever after # comes to the server, but CAN NOT send it using ajax once the page loads.</p>
  
  <p>So, its vital for the app to have whatever comes after # in order to process the page.</p>
  
  <p>That's when I came to the point of using ? instead, so the server side also has access to it.</p>
  
  <p>Its like client side and server side are sharing this parameter.</p>
  
  <p>I tried different methods to just use:</p>
  
  <pre><code>window.location.href= 'add_parameter';
  event.PreventDefault(); or return false; etc to stop the browser to actually change the URL.
  </code></pre>
  
  <p>TLDR: I need to be able to change the URL from this:</p>
  
  <p>www.site.com/?url1</p>
  
  <p>to this</p>
  
  <p>www.site.com/?url2</p>
  
  <p>on the fly, without reloading the page and NOT using #. (Or any way to convert the # to ?)</p>
  
  <p>Thanks,</p>