Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>reference : <a href="https://stackoverflow.com/questions/11051413/redirect-to-html-page-using-javascript/11051521#comment14491837_11051521">stackoverflow similar question</a></p> <p>from the link to answer taken</p> <p>Two options:</p> <blockquote> <p>1- You can use cookies. Set a cookie when logging in and check for that during load. Then clear it after performing your initialization so that next load the check will fail.</p> <p>2- You can use the address, either as a parameter like ?justLoggedIn, or a value in the hash after #justLoggedIn. Then check for that and redirect to the same url minus the justLoggedIn part. The advantage of the # version is that it doesn't actually reload the page, unlike when using the ? version.</p> </blockquote> <p><strong>UPDATE</strong>: reference :<a href="https://stackoverflow.com/questions/6985507/one-time-page-refresh-after-first-load">stackoverflow similar question</a></p> <p>I'd say use hash, like this:</p> <pre><code>window.onload = function() { if(!window.location.hash) { window.location = window.location + '#loaded'; window.location.reload(); } } </code></pre> <p><strong>UPDATE 2:</strong></p> <p>i think you should take a look at this question i dont know about pjax until now so i dont know alot about it</p> <p><a href="https://stackoverflow.com/questions/6985507/one-time-page-refresh-after-first-load">stackoverflow question</a></p> <p>look at <a href="http://pjax.heroku.com/" rel="nofollow noreferrer">http://pjax.heroku.com/</a>in the answers</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload