Mautic Community Forums

Repated email links not replaced

Hello,



We are about to launch our first Mautic email campaign (~100k users) - all is looking good, until we faced this bug:



Only the first incidence of a URL gets replaced with the Mautic one (for tracking / redirect).

Our work-around was to add bogus GET variables:

Code:
&_debug=2

My guess is that the RegExp is missing the
Code:
/g
flag :) or maybe a loop around the replace

PS: Will prepare a write up of our story as it might serve as a good starting point for newbies / those contemplating switching

Hello,

We are about to launch our first Mautic email campaign (~100k users) - all is looking good, until we faced this bug:

Only the first incidence of a URL gets replaced with the Mautic one (for tracking / redirect).
Our work-around was to add bogus GET variables: &_debug=2

My guess is that the RegExp is missing the /g flag :slight_smile: or maybe a loop around the replace

PS: Will prepare a write up of our story as it might serve as a good starting point for newbies / those contemplating switching

Can you make sure this gets reported on https://github.com/mautic/mautic/issues?

Thanks!
Alan

Yeah Alan. I am facing a similar problem.

Internet
facebook
Mautic

Mautic is open source marketing automation --_av-FE8_o6HnNIvbqNSlaVyp6A--

The links are not being replaced in the