title: window.location.href to subfolder
body: <p>I tried to set the location via js on a button click event:</p>
  
  <pre><code> onclick="window.location.href='shop/checkout'"
  </code></pre>
  
  <p>being on the "shop" page, this onclick event leads me to <code>/shop/shop/checkout</code>. using</p>
  
  <pre><code>onclick="window.location.href='checkout'"
  </code></pre>
  
  <p>leads me to <code>/checkout</code>, which is slightly confusing, because the href target wasn't the root directory...</p>
  
  <p>however, I tried "./shop/checkout", "./checkout", "/shop/checkout", "/checkout"....nothing seems to work ... i'm starting to feel rather stupid...</p>
  
  <hr>
  
  <p>The path itself isn't really a physical directory tough; it gets rewritten and passed to a content management system, which prepares the page. So the path has to be "/shop/checkout/" or "/shop/checkout".</p>
  
  <hr>
  
  <p>[EDIT] it's the freaking content manager. i have to work around this another way -.-</p>