title: history.pushState how can I get rid of get parameters?
body: <p>I am using </p>
  
  <pre><code>  history.pushState('id','myTitle','myURL');
  </code></pre>
  
  <p>to manipulate the displayed URL and the history stack.
  At some point I am pushing get parameters like so:</p>
  
  <pre><code>history.pushState('id','myTitle','?mySubLinkedStuff=hotSubLinkedStuff');
  </code></pre>
  
  <p>Now when I do</p>
  
  <pre><code>history.pushState('id','myTitle','#justSomeHashtag');
  </code></pre>
  
  <p>it produces <a href="http://example.com?mySubLinkedStuff=hotSubLinkedStuff#justSomeHashtag" rel="nofollow">http://example.com?mySubLinkedStuff=hotSubLinkedStuff#justSomeHashtag</a>
  I can also overwrite the value of mySubLinkedStuff but not seem to be able to get rif of it alltogether. </p>
  
  <p>Desired result:</p>
  
  <p><a href="http://example.com#justSomeHashtag" rel="nofollow">http://example.com#justSomeHashtag</a> or <a href="http://example.com/#justSomeHashtag" rel="nofollow">http://example.com/#justSomeHashtag</a> </p>
  
  <p>and obviously I don't want to make the whole roundtrip over the server and I also want to avoid using absolute path or URL to keep the project portable.</p>