Wednesday 11 April 2012 4:03:39 am - 6 replies
I'm wanting to allow query strings to pass through when redirecting to a custom URL alias - any ideas where the best place to start digging is?
e.g mysite.com/special?utm_source=google&utm_medium=email&utm_content=easter&utm_campaign=myproduct => mysite.com/uk/category/products/special?utm_source=google&utm_medium=email&utm_content=easter&utm_campaign=myproduct
Friday 13 April 2012 11:56:44 am
So, after a quick test and check with Eclipse + XDebug, I overrode the default eZHTTPTool class in my extension and added a line to the end of the eZHTTPTool::createRedirectUrl method:
if ( isset($_SERVER[QUERY_STRING]) && $_SERVER[QUERY_STRING] != '' ) $uri .= '?' . $_SERVER[QUERY_STRING];
Hopefully this won't stuff anything up in the process. I'll probably add a setting for turning this off/on in site.ini > HTTPHeaderSettings and add it to the above condition.
Modified on Friday 13 April 2012 12:00:16 pm by Geoff Bentley
You must be logged in to post messages in this topic!