Mautic Community Forums

Params and Link Redirects in Email

When I create a new email, I’m including the following link URL:

Code:
http://domain.com/push_to_mautic.php?formid=8&email={contactfield=email|true}‍&return=http://domain.com/confirm

When it gets converted to an email for click tracking, it's getting converted to:
Code:
http://mauticdomain.com/r/f0a20...03432?ct=3DY...tzOjY=6InNvd...7aTo4O3=MRhdC...NzM6N=zoiY2...X0%3D&email=3Djane.doe%40=gmail.com%E2%80%8D

When I click it in the email and then check the Click Counts in mautic, the link is listed as:
Code:
http://domain.com/push_to_mautic.php?formid=8&return=http%3A%2F%2Fdomain.com%2Fconfirm

note: the "..." is my own masking/shortening for this illustration

In other words, the dynamic redirect URL seems to pull in the the
Code:
formid
and
Code:
return
variables (the first and third URL parameters), but it leaves the
Code:
email
(middle) parameter outside of the dynamic link, instead tacking it on the end. The effect is that the redirector sees the
Code:
email
variable instead of the
Code:
push_to_mautic.php
script for which it is intended.

Can anyone help explain this bizarre behavior? or suggest a way that I can get the email variable into the url params that get delivered to my php push_to_mautic script?

additional note:
Interestingly, if I switch the order of the params in the URL so that the
Code:
email={contactfield=email|true}‍
param comes first after the
Code:
?
, then the whole link stays exactly as written in the field and never gets transformed into a dynamic redirect link for tracking in the resulting email.

When I create a new email, I’m including the following link URL:

http://domain.com/push_to_mautic.php?formid=8&email={contactfield=email|true}‍&return=http://domain.com/confirm

When it gets converted to an email for click tracking, it’s getting converted to:

http://mauticdomain.com/r/f0a20...03432?ct=3DY...tzOjY=6InNvd...7aTo4O3=MRhdC...NzM6N=zoiY2...X0%3D&email=3Djane.doe%40=gmail.com%E2%80%8D

When I click it in the email and then check the Click Counts in mautic, the link is listed as:

http://domain.com/push_to_mautic.php?formid=8&return=http%3A%2F%2Fdomain.com%2Fconfirm

note: the “…” is my own masking/shortening for this illustration

In other words, the dynamic redirect URL seems to pull in the the formid and return variables (the first and third URL parameters), but it leaves the email (middle) parameter outside of the dynamic link, instead tacking it on the end. The effect is that the redirector sees the email variable instead of the push_to_mautic.php script for which it is intended.

Can anyone help explain this bizarre behavior? or suggest a way that I can get the email variable into the url params that get delivered to my php push_to_mautic script?

additional note:
Interestingly, if I switch the order of the params in the URL so that the email={contactfield=email|true}‍ param comes first after the ? , then the whole link stays exactly as written in the field and never gets transformed into a dynamic redirect link for tracking in the resulting email.