Skip to content

Commit

Permalink
URL in email broken with Mail Template Layout
Browse files Browse the repository at this point in the history
Fix #44377
  • Loading branch information
leeroy1821 authored Oct 30, 2024
1 parent 0662f56 commit 32525d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/src/Mail/MailTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,6 @@ public function send()
$htmlBody = nl2br($this->replaceTags(Text::_($mail->body), $plainData, true), false);
}

$htmlBody = MailHelper::convertRelativeToAbsoluteUrls($htmlBody);

if ($useLayout) {
// Add additional data to the layout template
$this->addLayoutTemplateData([
Expand Down Expand Up @@ -381,6 +379,8 @@ public function send()
$htmlBody = $this->replaceTags(Text::_($htmlBody), $this->data);
}

$htmlBody = MailHelper::convertRelativeToAbsoluteUrls($htmlBody);

$this->mailer->setBody($htmlBody);
}

Expand Down

0 comments on commit 32525d9

Please sign in to comment.