Even though anchor links don't work in all mail clients, we have still been using them in emails for tables of content in a monthly newsletter. It seems like at least a few others have run into the same problem we have, which is that Mosaico breaks anchor links:

How can I set up anchors in Mosaico mailing? Internal links in a Mosaico template?

I've found that the issue is actually because Flexmailer seems to try to apply tracking to all URLs, including anchor links, which breaks them. I've put those details here:


Does anyone have ideas how this could be fixed simply?


1 Answer 1


Adding an answer for completeness' sake:

This was a bug and it was fixed last year in the following commit https://github.com/civicrm/civicrm-core/pull/20115

So if you update your Mosaico extension, it should be fine.

Credit: @LarsSG

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.