title: JavaScript location.href doesn't add record to browser history
body: <p>There are three pages, A, B and C. 
  A has a  tag  whose href redirects to B.
  B has JavaScript Code and redirects to C.
  When in C, I click browser back button, browser redirects to A. Why not B ? Thank you in advance.</p>
  
  <p>Test Links
  Page A: <a href="http://o17o2o.com:8000/article-href.html" rel="noreferrer">http://o17o2o.com:8000/article-href.html</a></p>
  
  <p>Page A</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"&gt;
      &lt;title&gt;Test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;a href="/href-redirect.html"&gt;click me&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Page B</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"&gt;
      &lt;title&gt;waiting&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      Page B
      &lt;script type="text/javascript"&gt;
          window.location.href = '/original.html';
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>