title: Having an ampersand in a querystring parameter
body: <p>I'm a bit new to javascript and I'm having a minor problem:</p>
  
  <p>I'm trying to redirect to a page (which then performs a redirect) in javascript. I'm setting the <code>window.location</code> like so:</p>
  
  <pre><code>window.location = "./RedirectPage.aspx?ReturnUrl=page.aspx?key=val&amp;amp;key2=val2";
  </code></pre>
  
  <p>Now, on RedirectPage.aspx when it's trying to redirect to the page that I passed in as the ReturnUrl, it is parsing key2=val2 as being another querystring parameter for RedirectPage instead of the ReturnUrl.</p>
  
  <p>It makes sense that it does that, but that's not what I am trying to do... any idea how I might solve this?</p>