title: Javascript redirect window.location.url with .hash
body: <p>I'm trying to make redirect and pass # parameters</p>
  
  <pre><code>// I'm at: http://example.com/index.html
  var url = 'http://example.com/category.html';
  var hash = '#testsite';
  
  // Ignores # and all after
  window.location.href = url + hash;
  
  // Does not work, sets hash first, then redirects to url without maintaining hash
  window.location.href = url;
  window.location.hash = hash;
  </code></pre>
  
  <p>Is it possible to redirect like that using javasript?</p>