Hi,

The attached patch will make gotwo look for a querystring in the destination url. If it finds one, it'll properly pass it to drupal_goto. If no querystring is found, then it behaves normally.

One use-case is for passing querystring parameters used by google analytics. Ex:

Label: trackme
Destination: node/3?utm_source=direct&utm_medium=email&utm_campaign=supercampaign

This will result in:

drupal_goto('node/3','utm_source=direct&utm_medium=email&utm_campaign=supercampaign');

Comments

hass’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Category: task » feature
Status: Needs review » Needs work

I would better use http://www.php.net/manual/en/function.parse-url.php for slitting (and re-glue) URLs. Also code style needs work to follow core rules.

hass’s picture

Status: Needs work » Fixed
StatusFileSize
new1.11 KB

I will commit the attached patch.

hass’s picture

Title: Support for querystring in goto URL » Support for querystring and fragment in goto URL

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.