joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.77k stars 3.65k forks source link

URL in email broken with Mail Template Layout #44378

Closed leeroy1821 closed 3 weeks ago

leeroy1821 commented 3 weeks ago

Pull Request for Issue #44377 .

Summary of Changes

Move convertRelativeToAbsoluteUrls after replaceTags

Testing Instructions

Mail template com_users.password_reset, HTML Body:

<p>Hello,</p>
<p>
    A request has been made to reset your {SITENAME} account password. To reset your password, you will need to submit this verification code to verify that the request was legitimate.
</p>
<p>
    The verification code is {TOKEN}
</p>
<p>
    Click <a href="{LINK_HTML}">here</a> and proceed with resetting your password.    
</p>
<p>
    Thank you.
</p>

Go frontent.

Forgot your password?

Check email Joomla sent you.

Actual result BEFORE applying this Pull Request

URL in email is broken: https://www.mysite.com/https://www.mysite.com/component/users/reset.html?layout=confirm&amp;token=blablabla&amp;Itemid=123

The https://www.mysite.com is dobled in email.

Expected result AFTER applying this Pull Request

URL in email is correct: https://www.mysite.com/component/users/reset.html?layout=confirm&amp;token=blablabla&amp;Itemid=123

No dobled https://www.mysite.com in email.

Link to documentations

Please select:

Quy commented 3 weeks ago

I have tested this item :white_check_mark: successfully on 32525d970d98b65e4fbe93668f5bf2ccec5fd9c0


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44378.

viocassel commented 3 weeks ago

I have tested this item :white_check_mark: successfully on 32525d970d98b65e4fbe93668f5bf2ccec5fd9c0


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44378.

alikon commented 3 weeks ago

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44378.

HLeithner commented 3 weeks ago

thanks