title: add params to url when user click to refreshing page
body: <p>On loading, my web page has the following url :</p>
  
  <p><a href="http://mywebsite.com?param1=test&amp;param2=test2" rel="nofollow noreferrer">http://mywebsite.com?param1=test&amp;param2=test2</a></p>
  
  <p>I use the following code during startup to remove from url the parameters once the web page is loaded:</p>
  
  <pre><code>if (window.history &amp;&amp; window.history.replaceState) {
      window.history.replaceState(null, null, window.location.pathname);
  }
  </code></pre>
  
  <p>Thus, my url becomes :</p>
  
  <p><a href="http://mywebsite.com" rel="nofollow noreferrer">http://mywebsite.com</a></p>
  
  <p>The problem is that the user refresh the page in the browser, i need to add again the parameters previously removed. How can i do that when the user refresh the page ?</p>
  
  <pre><code>$(window).unload(function() {
      // Add again parameters before reloading ..
  });
  </code></pre>