Blank Page after logging in with no Redirect Value
-
So we have the following recommended code in our functions file to set a custom login page and allow users to be redirected to the page they were trying to visit upon successful login. However, there are certain wordpress functions (like the password reset page for example) that send users to the login page directly with no redirect value. this results in users being presented with a completely blank (100% white / blank) page after logging in.
// Force Login plugin modifications —
// Custom Login URL
function my_login_page( $login_url, $redirect) {
return site_url(‘/welcome/?redirect_to=’.$redirect);
}
add_filter( ‘login_url’, ‘my_login_page’, 10, 2 );As an example here is an example of a url that would result in a blank page after logging in: https://website.com/welcome/?redirect_to=
Please let me know what should be adjusted or how to provide you with the correct info to troubleshoot further.
Thank you!
- The topic ‘Blank Page after logging in with no Redirect Value’ is closed to new replies.