ListUnsubscribe - Fix HTTP URL generation on WP/J
authorTim Otten <totten@civicrm.org>
Thu, 25 Jan 2024 00:07:27 +0000 (16:07 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 25 Jan 2024 00:08:11 +0000 (16:08 -0800)
CRM/Mailing/Service/ListUnsubscribe.php

index 6632325d15e57710d951000da58cd6c18406c40e..77a786e1a7a81ad43f7912218883dec0148a3c41 100644 (file)
@@ -64,7 +64,7 @@ class CRM_Mailing_Service_ListUnsubscribe extends \Civi\Core\Service\AutoService
       $listUnsubscribe[] = $params['List-Unsubscribe'];
     }
     if (array_intersect(['http', 'oneclick'], $methods)) {
-      $listUnsubscribe[] = '<' . Civi::url('civicrm/mailing/unsubscribe', $this->urlFlags)->addQuery([
+      $listUnsubscribe[] = '<' . Civi::url('frontend://civicrm/mailing/unsubscribe', $this->urlFlags)->addQuery([
         'reset' => 1,
         'jid' => $m[1],
         'qid' => $m[2],