-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL in email broken with Mail Template Layout #44377
Comments
I also have this URL problem with the emails that are now sent by Joomla 5.2. Very annoying. Do you know how to create a pull request? |
@webmasterab I can ask colleague. He helpt some month ago with pull request for passkeys. I will come with pull request in some hours. |
I made pull request #44378 Thanks! |
@leeroy1821 can you close this Issue as you have created a Pull Request? |
Close issue. See all Pull Request #44378 Thanks! |
Steps to reproduce the issue
Mail template
com_users.password_reset
HTML Body:
Expected result
URL in email is correct:
https://www.mysite.com/component/users/reset.html?layout=confirm&token=blablabla&Itemid=123
Actual result
URL in email is broken:
https://www.mysite.com/https://www.mysite.com/component/users/reset.html?layout=confirm&token=blablabla&Itemid=123
The
https://www.mysite.com
is dobled in email.System information (as much as possible)
Additional comments
When I put Mail Template Layout to No, problem not exist. Make me think Mail Template Layout is problem.
I look in MailTemplate. Line 331
$htmlBody = MailHelper::convertRelativeToAbsoluteUrls($htmlBody);
. Addvar_dump($htmlBody);
next to it. I see<a href="https://www.mysite.com/{LINK_HTML}">
. But LINK_HTML already havehttps://www.mysite.com/
! This comes the problem, no?I move
$htmlBody = MailHelper::convertRelativeToAbsoluteUrls($htmlBody);
after the big if layout and problem not exist.The text was updated successfully, but these errors were encountered: