After succesfull login the login page reloads
-
Good morning guys
Hope you are doing well?
I am using the Forge Login plugin, together with the following code:
// Custom Login URL*********************************************************
function my_login_page( $login_url, $redirect ) {
return site_url( ‘/login/?redirect_to=’ . $redirect );
}
add_filter( ‘login_url’, ‘my_login_page’, 10, 2 );It does a perfect job to redirect all users to the login page, however, if the user logs in successfully, the login page is reloaded. The top WordPress bar, however, does change, so the user is able to navigate to the site. This is not ideal as I want to redirect the user to the homepage (not dashboard) after successful login.
If I remove the code snippet above, the process works perfectly fine, except that the custom login page is not used. Any advice would be appreciated.
- The topic ‘After succesfull login the login page reloads’ is closed to new replies.