- Issue created by @brunodbo
- Status changed to Needs review
about 1 month ago 9:42pm 28 May 2024 - last update
about 1 month ago 17 pass
The regex in \Drupal\mailchimp_campaign\Plugin\Filter\FilterMailchimpCampaign::convertUrl
doesn't match HTML tags that are spread over multiple lines (this can happen in Twig templates), leading to some links not be converted to absolute links.
Build a campaign with the following example HTML, the link will not be converted to an absolute link.
This is a test campaign.
<a
href="/node/1">First node</a>
In the regex, use a character class that matches any character, except the tag's closing bracket: [^>]*?
. See attached patch.
Needs review
2.0
Campaign Module