I have a weird problem. I am trying to perform a simple location.reload(true), my url looks like this: http://ift.tt/1SHuaCU...
in the login page I am using ajax post to log in to the app, then I want to reload the page - but this time my server should recognize that the user is already logged in and redirect the user to the
?red=other_page part of my url.
when I check in my server for $_GET["red"] - it is empty for some reason (with my location.reload(true) request).
If I am using the exact same url and hitting "enter" it will work (my server recognizes the ?red part and indeed redirects).
so the url is not sent correctly using location.reload() or something..
I looked in chrome's debugger tool and saw that if I am advancing one step at a time, after my function in which the location.reload() takes place returns, I am stepping into some VM88 file and my url changes all of a sudden to my.website.com/login? and all the rest is omitted...
so that explains why my server doesn't recognize the ?red part - but the mystery is why the url changes. what is this VM88 file (debugger:///VM88)
any help will be great!! Thanks.
Aucun commentaire:
Enregistrer un commentaire