Opened 5 years ago
Closed 5 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Login and Registration | Version: | |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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_tolocation. Relevant code is here.Can you try again and confirm you don't have any plugins interfering etc?