Skip to content

Commit

Permalink
Merge pull request #29086 from totten/5.70-unsub-wp
Browse files Browse the repository at this point in the history
(dev/core#4641) ListUnsubscribe - Fix HTTP URL generation on WordPress
  • Loading branch information
colemanw authored Jan 25, 2024
2 parents eaeb25f + a1cec32 commit 35684c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Mailing/Service/ListUnsubscribe.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function alterMailParams(&$params, $context = NULL): void {
$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],
Expand Down

0 comments on commit 35684c9

Please sign in to comment.