Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2007 at 14:53 UTC
Updated:
23 Apr 2007 at 13:47 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| user_redirect_0.patch | 759 bytes | alexis |
Comments
Comment #1
RobRoy commentedGood catch. +1
Comment #2
drummCommitted to 5. Should go in HEAD.
Comment #3
dries commentedCommitted to CVS HEAD. Thanks.
Comment #4
(not verified) commented