Custom redirection after login not working as expected
-
Hi! I noticed a weird bug when AIOS is active.
The
redirect_to
parameter inlogin_redirect
filter in not working in some cases.For example, I use URLs like this:
https://whatever-domain.com/wp-login.php?redirect_to=https%3A%2F%2Fwhatever-domain.com%2Fwp-admin%2Foptions-general.phpWhen AIOS is not active, the redirect works as intended. After login, the admin user is redirected automatically to the URL passed in the
redirect_to
parameter (in this example the WP general settings, but it be any admin URL).When AIOS is active, this redirect stops working, and the admins sees the WP dashboard page, which is the default behavior when the
redirect_to
parameter doesn’t exist.Note that the redirect should happen:
a) after a (previously logged out) admin successfully logs in via the login link containing theredirect_to
parameter
b) when an admin is already logged in and visits the login link containing the redirect_to parameterI tested with no other plugins activated. The only plugin causing this unexpected behavior is AIOS. When I deactivate it, everything works as intended.
Also, I <span style=”text-decoration: underline;”>don’t</span> use your “Rename login page” feature. And also I tried disabling all AIOS features, but no option seem to affect this directly.
I don’t use any custom code, I add only the
redirect_to
parameter in the login link, which is a native WordPress feature and works out of the box.I use the latest plugin version, but it happens with previous versions also.
Thank you
- The topic ‘Custom redirection after login not working as expected’ is closed to new replies.