Skip to content

Commit

Permalink
Bugfix with webview
Browse files Browse the repository at this point in the history
  • Loading branch information
jos0405 authored May 12, 2023
1 parent 18e7d0d commit b3ca702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/BuilderSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function onEmailGenerate(EmailSendEvent $event)
if (!$webviewText) {
$webviewText = $this->translator->trans('mautic.email.webview.text', ['%link%' => '|URL|']);
}
$webviewText = str_replace('|URL|', $this->buildUrl('mautic_email_preview', ['idHash' => $idHash], true, [], [], $senderDomain), $webviewText);
$webviewText = str_replace('|URL|', $this->buildUrl('mautic_email_webview', ['idHash' => $idHash], true, [], [], $senderDomain), $webviewText);
$event->addToken('{webview_text}', EmojiHelper::toHtml($webviewText));

// Show public email preview if the lead is not known to prevent 404
Expand Down

0 comments on commit b3ca702

Please sign in to comment.