title: How does JavaScript object history stores an URL into its stack?
body: <p>I have this history logs in the <code>window.history</code> object with 5 as my current page.</p>
  
  <pre><code>5) http://myapp.com/great-new-story/01242020.html
  4) http://myapp.com/great-new-story/01052020.html
  3) http://myapp.com/great-new-story/12012019.html
  2) http://myapp.com/allnews.html
  1) http://myapp.com
  </code></pre>
  
  <p>Then I want to go to page <code>allnews.html</code> (or no.2) , will the <code>allnews.html</code> be logged in No. 6? </p>
  
  <p>Or it will not be logged and will use (no. 2) since allnews was already in the stack?</p>