Problem: drupal_goto() stops the request execution and other form submit handlers don't get a chance to alter the redirect target. drupal_goto() must not be used in form submission callbacks.
Solution: use $form_state['redirect'] instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | pw-hustle-redirect-2362439-1.patch | 890 bytes | klausi |
Comments
Comment #1
klausiPatch attached.
Comment #2
SolomonGifford commentedI've been trying very hard not to deviate from core behavior in this module to avoid feature creep and unexplained behavior. See the user module for the fact that drupal_goto is used. However, your patch does fit in with the spirit of what this module is doing in the sense that we are allowing the user to not have to go to the edit page after login. It also may partially solve #2091607: Incompatible with login_history module.
Comment #3
anybodyPatch looks good to me. RTBC?
Comment #4
SolomonGifford commentedApplied. Thanks.