# Params and Link Redirects in Email

**URL:** https://forum.mautic.org/t/params-and-link-redirects-in-email/6445
**Category:** Product Support
**Created:** [November 5, 2016, 12:08am UTC](https://forum.mautic.org/t/params-and-link-redirects-in-email/6445 "2016-11-05T00:08:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Scully](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Scully](https://forum.mautic.org/u/Scully)
#### Post date: [November 5, 2016, 12:08am UTC](https://forum.mautic.org/t/params-and-link-redirects-in-email/6445/1 "2016-11-05T00:08:47Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Scully](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Scully](https://forum.mautic.org/u/Scully)
#### Post date: [November 5, 2016, 12:08am UTC](https://forum.mautic.org/t/params-and-link-redirects-in-email/6445/2 "2016-11-05T00:08:47Z")

</div>

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

```auto
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:

```auto
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.
