Merge tags for communication preferences and unsubscribe incorrect in Mosaico mailings
We have a preferences block in our Mosaico template which looks like this:
<a href="{CommunicationPreferences.comm_pref_supporter_url}" style="text-decoration: underline; color: #FFFFFF; font-weight: 600;">Update communication preferences</a><br> <a href="{action.unsubscribeUrl}" style="text-decoration: underline; color: #FFFFFF; font-weight: 600;">Opt out of all communications</a>
When the mailing goes out, the location of the Mosaico template is prepended to the links, so they end up like this:
<a href="https://www.XXX.org.uk/wp-content/uploads/civicrm/mosaico_tpl/XXX/https://www.XXX.org.uk/civicrm/gdpr/comms-prefs/update/?reset=1&cid=64128&cs=04e32b40536295bc9b37d124ecfe51ce_1696349918_240" style="text-decoration: underline; color: #FFFFFF; font-weight: 600" target="_new">Update communication preferences</a><br> <a href="https://www.XXX.org.uk/wp-content/uploads/civicrm/mosaico_tpl/XXX/https://www.XXX.org.uk/civicrm/mailing/unsubscribe/?reset=1&jid=&qid=&h=fakehash" style="text-decoration: underline; color: #FFFFFF; font-weight: 600" target="_new">Opt out of all communications</a>
This is on: CiviCRM 5.65.2 Mosaico 3.2.1691060437 WordPress 6.3.1