title: How to remove parameters in URL and display it in address bar without causing redirect in Javascript?
body: <p>I have found numerous answers on how to extract the URL without the parameters.</p>
  
  <p>How do you rewrite the URL in the address bar without causing the page to reload with the new URL?</p>
  
  <pre><code>shortURL = top.location.href.substring(0, top.location.href.indexOf('?'));
  top.location.href = shortURL // Causes redirect
  </code></pre>
  
  <p>The goal is to extract the parameters in Javascript but not display them in the address bar.</p>