Thank you for reading! There's a lot redirecting going on on the site I'm creating.
For example,
if not logged in user access a "private" page, he will be redirected to the login.
if users logs in, he will be redirected to the last page he visited before accessing the login form.
Let's call the pages "Private" and "LogIn".
So, if everything goes well should be -> Private -> LogIn -> Private
However, when LogIn calls wp_get_referer(), it does NOT return Private (works with every Public page)
I thinks this is because Private is calling wp_redirect( LogIn )
Any work around to this? Thanks again for reading