title: How to remove `&` sign and all text after that from url
body: <p>I have this URL</p>
  
  <pre><code>https://myApp-ajj.com/sp?id=cat_item&amp;sys_id=cf9f149cdbd25f00d080591e5e961920&amp;sys_id1=cf9f149cdbd25f00d080591e5e961920&amp;sysp_Id=a691acd9dbdf1bc0e9619fb&amp;sysparm_CloneTable=sc_request&amp;sysparm_CloneTable=sc_request
  </code></pre>
  
  <p>Here I am getting <code>sys_id</code> two times with different parameters. So I need to remove the second <code>&amp;</code> sign and all text after that.</p>
  
  <p>I tried this</p>
  
  <pre><code>location.href.split('&amp;')[2] 
  </code></pre>
  
  <p>I am sure it doesn't work. Can anyone provide some better solution?</p>