Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
I have a website that has multiple locations and on each location page there is a contact form. They need to have a success page for each location for conversion tracking purposes. I have one master Success page couchified and looking to use just one page in case they add or remove locations in the future. Is there a way to add a query string to the couch redirect tag?
Is there a way to add a query string to the couch redirect tag?
I think you need to add the querystring parameter to the 'success' template's link. That link can then be handed to cms:redirect -
Code: Select all
<cms:redirect "<cms:add_querystring "<cms:link 'success.php' />" 'location=some_value' />" />

Does this help?
I made a small change and it doesn't look like I got it right. Here is the code and result:

<cms:redirect "<cms:add_querystring "<cms:link 'success.php' />" 'location=<cms:show k_page_name />' />" />

Result:
www.site.com/success/?location=cms:show ... ation_form
Please try using double-quotes -
Code: Select all
<cms:redirect "<cms:add_querystring "<cms:link 'success.php' />" "location=<cms:show k_page_name />" />" />
4 posts Page 1 of 1
cron