Download & Extend

#redirect won't work with user registration

Project:Drupal core
Version:6.x-dev
Component:user.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSizeStatusTest resultOperations
user_redirect_0.patch759 bytesIgnored: Check issue status.NoneNone

Comments

#1

Good catch. +1

#2

Version:5.x-dev» 6.x-dev

Committed to 5. Should go in HEAD.

#3

Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks.

#4

Status:fixed» closed (fixed)