title: How to get the right query of an url that has a query in the string?
body: <p>I've got a query inception problem. </p>
  
  <p>I want to add this url </p>
  
  <pre><code>let url = "https://example.com/?1sCmRaAAAA72SeRa7wRVoddtJBRw&amp;3u2500&amp;4u1500&amp;5m1&amp;2e1&amp;key=somekey-5o-Wj4&amp;callback=none&amp;token=106953"
  </code></pre>
  
  <p>to window.location as a query.</p>
  
  <pre><code>window.location = `/find/?photo=${url}`;
  </code></pre>
  
  <p>The result is unfortunately:</p>
  
  <pre><code>photo=https://example.com/?1sCmRaAAAA72SeRa7wRVoddtJBRw
  </code></pre>
  
  <p>so the &amp;s are missing to the query what is need to get the image.</p>