When there is a redirect_to in the URL, redirect to there
-
When there is a redirect_to as
$_GET
parameter in the URL, I want the user to be redirected to this page instead of what I filled in in the back-end of the wordpress admin panel.For example:
When a subscriber logs in, I want him to go to https://example.com.
But when a user tried to visit a page for example https://example.com/test and I have aauth_redirect()
function in there, it will send the user to:https://example.com/login?redirect_to=https://example.com/test
.Now I do not want the user to be redirected to
https://example.com
but tohttps://example.com/test
like given in the URL.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘When there is a redirect_to in the URL, redirect to there’ is closed to new replies.