Opened 3 years ago
Closed 3 years ago
#53823 closed defect (bug) (invalid)
The redirect_to query arg is lost on a failed log in attempt
Reported by: | henry.wright | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
If the wp-login.php page is visited with a ?redirect_to=foo query arg in the url, I'd expect to be redirected when log in is completed.
However, on a failed log in attempt, the page is refreshed and the redirect_to query arg isn't kept in the URL.
Change History (4)
Note: See
TracTickets for help on using
tickets.
Thanks for the report Henry! This works as expected for me. When a user's login fails, the browser remains on the POSTed form and the value of the
redirect_to
(and other) parameters are placed into hidden inputs on the login form. If the user subsequently logs in successfully, they are redirected to theredirect_to
location. Relevant code is here.Can you try again and confirm you don't have any plugins interfering etc?