-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/mailing#95 Only track <a> urls in Flexmailer for HTML emails #20129
dev/mailing#95 Only track <a> urls in Flexmailer for HTML emails #20129
Conversation
In Flexmailer only, HTML only
(Standard links)
|
@larssandergreen sometimes I think there should be a prize for the biggest metadata:changed-characters ratio! Mind you, now we're looking for |
The |
@artfulrobot If you use A in a tag and save the mailing, it is converted to lowercase (same for HREF, which wouldn't have worked before now if not). But good idea to add i here — belt and braces. That does take the PR up to four characters though. |
@MikeyMJCO Sorry, I oversimplified in my explanation and have now clarified. All I've changed is where the regex formerly looked for < to start matching the pattern, now it looks for <a (and I've now added an i to make this case insensitive). But just to be sure, I just tested with |
@artfulrobot @MikeyMJCO do either of you have a feeling what the status is on this one? |
Approved from me - small but valuable change. Code is clear and a few things clarified by the author in-transit! |
I've added merge-ready just in case @artfulrobot wants to comment before we merge based on your review @MikeyMJCO |
|
Shoulda read the regex... |
@totten is that a thumbs up on merging? |
Yeah, concept+approach seem fine. Haven't |
Let's merge this, although I think a minor improvement would be
and likewise for the
|
Ok - Ill merge this & someone can put up a follow up with @artfulrobot's suggestion as a follow up |
Thanks all! |
Issue here.
Before
Link tracking was applied to all URLs inside tags, including tags like <link>.
After
Link tracking is applied only to URLs inside <a> tags. Regex simply looks for <a anything href=URL> instead of <anything href=URL> (edited to add "anything" for clarity).