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.
| Comment | File | Size | Author |
|---|---|---|---|
| redirectbug.patch | 660 bytes | adixon |
Comments
Comment #1
hunmonk commentedthere 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.
Comment #2
(not verified) commented