title: How to get window URL after redirect?
body: <pre><code>var win = window.open('http://example.com/login');
  
  console.log(window.location.pathname); // /login
  </code></pre>
  
  <p>How to get pathname after /login page redirect me to other page?</p>
  
  <p>Thanks in advance.</p>