User Register page is different if there is a destination parameter in the url I'm trying to find where to go in Drupal to find out how a user register form is displayed.

If the url is user/register, a person is routed to a standard registration form.

However, if the url is user/register?destination=voucher, then that person is routed to a user registration form that mimics our popup modal registration form, however, is not in a popup. This is not the regular registration form.

I want to find where this is set so that if a destination parameter is in the url, to go to the standard registration form.
The drupal_get_form() returns a form array for rendering. In your case drupal_get_form('user_register_form'). You can use drupal_render() with the result to render the html output.

If you need to override the form, use hook_form_alter() and change the $form_state['redirect'][] = 'your/redirect/path'. Also try removing the destination param with unset($_GET['destination']).

Here are some references:


Form Redirect not working if &#39;destination&#39; is in URL
https://stackoverflow.com/questions/1175687/redirect-after-registration-in-drupal
http://www.brianvuyk.com/story-type/changing-redirect-value-drupal-node-form-d6