Make WordPress Core

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)

#1 @johnbillion
5 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
5 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
5 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

Cheers Henry, closing this off then.

Note: See TracTickets for help on using tickets.