Back to All

No href generated for mailto-links in itemTemplates.json

In itemTemplates.json this

{
"name": "Mer information och realtidssaldo",
"type": "link",
"link": "{{item.attribute._catalog_provider_id_ref}}",
"value": "Visa Dustins produktsida",
"target": "_blank"
}

will render in

Visa Dustins produktsida

but

{
"name": "{{t '_user_itemcard_email'}}",
"type": "link",
"link": "mailto:{{item.attribute.mail}}",
"value": "{{item.attribute.mail}}" : '-'"
},

renders in

[email protected]

As you can see the mailto: renders the href empty.
Removing it will leave the mailadress as a non working link because of the lack of mailto:. ;)

Mailto is used in several places in the itemTemplates.json but seems to never have worked.
I tried a few different handlebar modifications, but I guess it is hardcoded to handle only http(s)?

I'll remove the mailto's for now and remove the type:link.
But if you have a workaround it would be much appreciated!