ankane / ahoy_email

First-party email analytics for Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Track utm_params breaks links with nested content

mnort9 opened this issue · comments

When using track utm_params: true, it seems to remove nested link content to outside the link tag. Example:

track utm_params: false

<a href="https://google.com">
  <img src="...">
</a>

track utm_params: true

<a href="https://google.com?utm_source=...">
</a>
<img src="...">

Hey @mnort9, I'd double check that the markup isn't malformed beforehand. If that's not the issue, can you create a test case like the one in the commit above to reproduce?

Closing due to no response