Go to articles. There create a custom field of type "URL". For scheme select "mailto" and save.
If adding/editing an article and enter a valid email address into the custom URL field, in the frontend a proper email link should be generated.
A https link including email address is generated instead, such as: https://www.mydomain.dd/firstname-lastname@mydomain.dd
Joomla 4.0.6, PHP 7.4
This issue also exists in J3.
Labels |
Added:
No Code Attached Yet
|
Agree: If I add schema manually in front of email address, then email addresss (href) is build correctly but "mailto:" is visible in Frontend.
Since I select "mailto" from schema dropdown already, I would expect not to have to add it manually as well. And "mailto:" beeing visible in frontend is not good.
@brianteeman But in the article, only one type of data will be entered into the field: either email, http URL, file etc. Why multi-select?
Besides this, adding schema "mailto:" as well in front of the email address might be no problem for experienced users, but it's not for not so experienced users. They would expect to enter email address only and link will be build corrrectly. My toughts.
And as mentioned in comments earlier: "mailto:" is visible in frontend.
Step 1)
I open Articles > Fields. There I add a custom field of type "URL". In its settings I set parameter for schema to "Mailto":
Step 2)
After I edit an article and add email address into the new URL field. When saving, I get a warning message about missing schema, even if I have set it previously in step 1):
Step 3)
I add "mailto:" into email field:
Result:
Email link works in frontend, but schema is visible to user:
My thoughts:
Labels |
Added:
bug
|
I have tested this on Joomla 4.0.6. and I can't confirm this. You need to add URL schema (mailto:) to the field and email link is displayed correctly.
Although there are other issues, like mailto: schema displayed in email link.