Improper redirection after login
-
If you look at wp-login.php you will see that by default WordPress will redirect you to home_url() after a successful login.
In your plugin you are redirecting to site_url() instead.
In most cases, both URLs are the same and it doesnt matter. But when we use your plugin together with WPML we loose the currently selected language because of this.
I suggest that you replace site_url() with home_url() in classes/class.simple-wp-membership.php line 210 so it looks like this:
`
wp_redirect(home_url());
`
This was initially reported in the WPML support forum:
https://wpml.org/forums/topic/after-login-using-membership-plugin-it-will-redirected-for-the-english-homepage/Thanks
- The topic ‘Improper redirection after login’ is closed to new replies.