Skip to content

Commit

Permalink
fix unsubscribe url for service alert
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed May 30, 2024
1 parent 2283bd4 commit f851a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sympa.module
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function sympa_build_email($type, $sympa_nid, $sympa_title, $sympa_body, $servic
$here = Url::fromRoute('entity.node.canonical', ['node' => $sympa_nid], $options);
$more_info = Url::fromRoute('entity.node.canonical', ['node' => 2514], $options);
$unsubscribe_n = Url::fromUri('internal:/sympa/unsubscribe/news');
$unsubscribe_sa = Url::fromUri('internal:/sympa/unsubscribe/service_alerts');
$unsubscribe_sa = Url::fromUri('internal:/sympa/unsubscribe/service_alert');
$config = \Drupal::config('system.site');
$body_xss = isset($sympa_body[0]['value']) ? Xss::filterAdmin($sympa_body[0]['value']) : NULL;
$body_stripped = $body_xss ? preg_replace("/<img[^>]+\>/i", " ", $body_xss) : '';
Expand Down

0 comments on commit f851a4b

Please sign in to comment.