#redirect won't work with user registration
alexis - April 3, 2007 - 14:53
| Project: | Drupal |
| Version: | 6.x-dev |
| Component: | user.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
If you modify user settings so that users can choose their own password, automatically login after registration and there's no need for administration approval then you won't be able to override the redirection after registration using $form['#redirect'] from hook_form_alter().
The patch replaces drupal_goto() with return '' in the relevant block of code in user_register_submit(). Now $form['#redirect'] works correctly.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| user_redirect_0.patch | 759 bytes | Ignored | None | None |

#1
Good catch. +1
#2
Committed to 5. Should go in HEAD.
#3
Committed to CVS HEAD. Thanks.
#4