Make WordPress Core

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: henrywright's profile 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)

#1 @johnbillion
3 years ago

  • Keywords reporter-feedback added

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 the redirect_to location. Relevant code is here.

Can you try again and confirm you don't have any plugins interfering etc?

#2 @henry.wright
3 years ago

Hi @johnbillion

This isn't an issue if the redirect information is placed in hidden input fields. Please feel free to close this ticket.

#4 @johnbillion
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Cheers Henry, closing this off then.

Note: See TracTickets for help on using tickets.