Answers.Body: <p>Adding an answer for completeness' sake:</p>
  <p>This was a bug and it was fixed last year in the following commit <a href="https://github.com/civicrm/civicrm-core/pull/20115" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/20115</a></p>
  <p>So if you update your Mosaico extension, it should be fine.</p>
  <p>Credit: <a href="https://civicrm.stackexchange.com/questions/31507/using-internal-anchor-links-in-mosaico-emails?noredirect=1#comment50884_31507">@LarsSG</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-14T20:21:28.417Z
Answers.LastActivityDate: 2022-12-14T20:21:28.417Z
Answers.UserDisplayName: artfulrobot
Body: <p>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:</p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/23052/how-can-i-set-up-anchors-in-mosaico-mailing">How can I set up anchors in Mosaico mailing?</a>
  <a href="https://civicrm.stackexchange.com/questions/21048/internal-links-in-a-mosaico-template">Internal links in a Mosaico template?</a></p>
  
  <p>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:</p>
  
  <p><a href="https://github.com/civicrm/org.civicrm.flexmailer/issues/43" rel="nofollow noreferrer">https://github.com/civicrm/org.civicrm.flexmailer/issues/43</a></p>
  
  <p>Does anyone have ideas how this could be fixed simply?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-22T13:21:21.233Z
Comments.Text: Is this still an issue? There were PRs around tracking links in Sept 2019.
Comments.UserDisplayName: artfulrobot
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-12-14T18:38:45.020Z
Comments.Text: Fixed last year: https://github.com/civicrm/civicrm-core/pull/20115
Comments.UserDisplayName: Lars SG
Tags: <mosaico><flexmailer>
Title: Using internal anchor links in Mosaico emails
ThreadText: # Using internal anchor links in Mosaico emails
  
  (Asked by: username_0 on 2019-07-26)
  
  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?](https://civicrm.stackexchange.com/questions/23052/how-can-i-set-up-anchors-in-mosaico-mailing)
  [Internal links in a Mosaico template?](https://civicrm.stackexchange.com/questions/21048/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:
  
  <https://github.com/civicrm/org.civicrm.flexmailer/issues/43>
  
  Does anyone have ideas how this could be fixed simply?
  
  **Tags:** mosaico, flexmailer
  
  > **Comments:**
  > **username_1**: Is this still an issue? There were PRs around tracking links in Sept 2019.  
  > **username_0**: Fixed last year: https://github.com/civicrm/civicrm-core/pull/20115  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-12-14. Score: 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: [@username_0](https://civicrm.stackexchange.com/questions/31507/using-internal-anchor-links-in-mosaico-emails?noredirect=1#comment50884_31507)
  
  
  ---
  
  