# Mautic replaces ? with & in URL

**URL:** <https://forum.mautic.org/t/mautic-replaces-with-in-url/9666>\
**Category:** Product Support\
**Created:** [October 11, 2017, 1:20pm UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666 "2017-10-11T13:20:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [October 11, 2017, 1:20pm UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/1 "2017-10-11T13:20:19Z")

</div>

Hi Guys,  
  
  
  
after sending the email out where I have something like this (generated email in Code Mode):

Code:

 ![](https://myurl/?param1=A&param2=B)

  
Mautic replaces the question mark, so I end up with this  

Code:

 ![](https://myurl/&param1=A&param2=B)

  
And it breaks my URL since it is strongly parameter-dependent.  
  
Any idea how to solve it?  
  
Thanks,  
D.

---

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [October 11, 2017, 1:20pm UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/2 "2017-10-11T13:20:19Z")

</div>

Hi Guys,

after sending the email out where I have something like this (generated email in Code Mode):

```auto
<img src="https://myurl/?param1=A&param2=B" />
```

Mautic replaces the question mark, so I end up with this

```auto
<img src="https://myurl/&param1=A&param2=B" />
```

And it breaks my URL since it is strongly parameter-dependent.

Any idea how to solve it?

Thanks,  
D.

---

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [October 11, 2017, 1:38pm UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/3 "2017-10-11T13:38:23Z")

</div>

Temporarily solved it by modifying:

Configuration - Email Settings - Disable Trackable URLs (setting it to Yes, thus disabling tracking)

D.

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [October 12, 2017, 5:37am UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/4 "2017-10-12T05:37:15Z")

</div>

Yes, but now your URLs are not getting tracked any more.

---

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [October 12, 2017, 5:45am UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/5 "2017-10-12T05:45:02Z")

</div>

Yes, I know. This is why I said “temporarily”, meaning that I’ll be keeping this setting for this campaign’s lifetime only, and then I’ll switch it back on.

Thanks.

D.

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [October 12, 2017, 5:52am UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/6 "2017-10-12T05:52:40Z")

</div>

I once hat a similar problem. Something in the URL went wrong and the first parameter could not be accessed on the landing page. My simple workaround was adding a dummy parameter in the first position and the “real” parameters after that. Like:

```auto
http://mysite.com/?dummy=dummy&email=temp@example.com
```

The first parameter is still broken, but all parameters after could be accessed. Not elegant, but it works.

---

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [October 12, 2017, 5:55am UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/7 "2017-10-12T05:55:38Z")

</div>

I am not sure this would work in my case. If you take a look at the first post, the first parameter gets an ampersand (&) instead of the question mark (?).

I think that all URL parameter grabbers on webservers require a ? at the beginning in order to parse the query (GET) parameters.

Well, since I am calling a service I programmed myself, I could easily rewrite the code to expect something as #/param1/val1/param2/val2/ but this sucks, to be honest 😉

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [October 12, 2017, 6:00am UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/8 "2017-10-12T06:00:06Z")

</div>

Of course I read your 1st post. 🙂 I used it to fill out forms on a Mautic landing page. Which worked with the workaround. I don’t know if it helps in your case but I would give it a try.

---

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [October 12, 2017, 6:04am UTC](https://forum.mautic.org/t/mautic-replaces-with-in-url/9666/9 "2017-10-12T06:04:25Z")

</div>

Yeah, probably the code behind Mautic landing pages works as you wrote (probably Symfony handles query parameters somewhat better than vanilla PHP), whileas my service (which is PHP-based and expects $\_GET["…"]) does not. Thanks, though.
