title: Javascript pass get params
body: <p>I get exists get params on request:</p>
  
  <pre><code>?filterBy=1,2,3
  </code></pre>
  
  <p>How I can pass params after filterBy with js?</p>
  
  <p>My solution:</p>
  
  <pre><code>switch(type) {
          case 'status':
              window.location.href = '?filter-status=i=' + filters;
          break;
          case 'oldFrom':
              window.location.href = '?oldFrom';
          break;
          case 'oldTo':
              window.location.href = '?oldTo';
          break;
          case 'newFrom':
              window.location.href = '?newFrom';
          break;
          case 'newTo':
              window.location.href = '?newTo';
          break;
          case 'catesel':
              window.location.href = '?byCategory=' + filters;
          break;
      }
  </code></pre>
  
  <p>In my case I rewrite get params. <br>
  Example: if I have exists param on request: <code>byCategory=1,2,3</code> And when I click button to add new filter by request is remove and write new. How I can do this:</p>
  
  <p><code>?byCategory=1,2,3&amp;newFrom</code> ...</p>
  
  <p>I need remove <code>window.location.href</code> or how pass exists get params?</p>