Redirect user to custom page if already logged in
-
Hello,
We have a small issue with the plugin. We expect users to be redirected to the custom URL everytime. ATM, if you are logged in and access https://www.example.com/?auth=sso&redirect_uri=https://www.example.com/destination/, you will be redirected to the homepage because it’s hardcoded in callback.php as
wp_redirect( home_url() );
.Can we get a filter around the redirects? Or even better, for this case, move the logged in check after retrieving the redirect url from
$_GET['redirect_uri']
.Thank you!
- The topic ‘Redirect user to custom page if already logged in’ is closed to new replies.