From a1cec32238b7bd269f341cbbf25f70ce7e185f55 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 24 Jan 2024 16:07:27 -0800 Subject: [PATCH] ListUnsubscribe - Fix HTTP URL generation on WP/J --- CRM/Mailing/Service/ListUnsubscribe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/Service/ListUnsubscribe.php b/CRM/Mailing/Service/ListUnsubscribe.php index 6632325d15..77a786e1a7 100644 --- a/CRM/Mailing/Service/ListUnsubscribe.php +++ b/CRM/Mailing/Service/ListUnsubscribe.php @@ -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], -- 2.25.1