Understanding how login redirect works
The WPUM login form supports multiple redirect methods. Here's an explanation of how each method works and is triggered.
- Query string method: the login form will give priority to the redirect_to query string into the browser url. When the query string is available, the login form will ignore any other method and redirect to the url specified into the query string. The query string obviously accepts an url that must be properly encoded.
- Selected page: if both of the above condition is not available, and you have selected a page into the admin panel, the form will redirect to the selected page. This is usually triggered when someone goes straight to your login page without having visited any other page on your site.
- If a query string and a selected page are not available, the login form will redirect to it's current page.