title: window.history.pushState to localhost/MySite
body: <p>I'm using <code>pushState</code> to change to URL to manipulate the browser address bar while clicking on an image in my website.</p>
  <p>how can I change it back to the homepage when working with on development environment.
  for example: my address bar has this URL: <strong>http://localhost/MySite</strong>
  after clicking on a picture I'm changing the address bar to: <strong>http://localhost/MySite/pic/123</strong>
  with window.history.pushState.</p>
  <p>The problem is - On development environment, I cant use</p>
  <pre><code>window.history.pushState(obj, title , '/');
  </code></pre>
  <p>since the slash ('/') takes me to <strong>http://localhost/</strong>.</p>
  <p>I tried &quot;../&quot; instead but it still doesn't work
  and window.history.back() neither.</p>
  <p>Any advice?</p>