RE: Mailto in portlet causing a redirect to homepage

Nick avg1000, modified 6 Years ago. New Member Posts: 4 Join Date: 12/19/18 Recent Posts

I have a mailto link like below:

 

<a href="mailto:info@mywebsite.org?Subject=Title">email us</a>
 

And when I click on the link, it redirects me to the homepage with this url https://mywebsite.org/?subject=Title and not open my email client.

 

Found out the problem was with the extension of my email being the same as my website url (mywebsite.org), because when I do this:

 

<a href="mailto:info@mywebsiteTWO.org?Subject=Title">email us</a>

 

It works just fine. Any ideas on how to work around this? I'd prefer not to have to change the email's extension.
 

thumbnail
Dominik Marks, modified 6 Years ago. Regular Member Posts: 149 Join Date: 8/29/12 Recent Posts
Hey Nick,

did you ever find a solution for this? I am facing the same issue.

Regards,
​​​​​​​ Dominik
thumbnail
Dominik Marks, modified 6 Years ago. Regular Member Posts: 149 Join Date: 8/29/12 Recent Posts
For me it seems that this is a bug in Liferay. I filed a bug ticket: https://issues.liferay.com/browse/LPS-90343