When you try to login with the destination= parameter (i.e., if you want to redirect someone to another page on login, a destination that is set dynamically depending on where they're coming from, for example), and incorrect login parameters are given, it will redirect instead of staying on the login page.

The attached patch will keep the destination= in the url while really going to the login page as expected/desired, in the case of a failed login.

CommentFileSizeAuthor
redirectbug.patch660 bytesadixon

Comments

hunmonk’s picture

Status: Needs review » Fixed

there is a far easier solution than this -- remove that drupal_goto(). failed validation should take you back to the correct page.

applied to 4.7. this is not an issue in 5.x and beyond.

Anonymous’s picture

Status: Fixed » Closed (fixed)