title: Use Javascript history.go() to the real "previous" page
body: <p>Assuming we have a history like this:</p>
  
  <pre><code> - Home
   - Page 1
   - Page 2
  </code></pre>
  
  <p>JS <code>history.go(-1)</code> works well to go to Page 1... but what if our current history is</p>
  
  <pre><code> - Home
   - Page 1
   - Page 2
   - Page 2 (2nd time)
   - Page 2 (3rd time)
   - ...
   - Page 2 (nth time)
  </code></pre>
  
  <p>How can we use <code>JavaScript</code> history object to go back to <strong>Page 1</strong>?</p>