title: Reloading the page after redirect
body: <p>In my application I have a link for logout.</p>
  
  <p><code>html</code></p>
  
  <pre><code>&lt;a onclick="myFunction()"&gt;Logout&lt;/a&gt;
  </code></pre>
  
  <p><code>js</code></p>
  
  <pre><code>function myFunction() {
      document.location.href = 'https://url/oauth/logout?redirect=https://url';
  }
  </code></pre>
  
  <p>The problem I am having is, when I click logout, I immediately redirects to the <code>url</code>. It seems like I am not logged out but after I refresh manually, I get logged out. </p>
  
  <p>I also tried <code>window.reload();</code> inside <code>myFunction()</code> but it actually doesn't get called at all.</p>
  
  <p>Is there a way to reload the page after the <code>myFunction()</code> is called.</p>
  
  <p>Any help is appreciated. Thanks</p>