Fix: chromium browsers don't handle spaces in tel:-links well

This commit is contained in:
Pieter Vander Vennet 2024-08-28 12:02:04 +02:00
parent b79835074f
commit 4168ef01e3
5 changed files with 315 additions and 279 deletions

View file

@ -175,13 +175,23 @@
"cs": "Jaké je telefonní číslo {title()}?"
},
"render": {
"*": "<a href='tel:{phone}'>{phone}</a>"
"special": {
"type": "link",
"href": "tel:{phone}",
"text": "{phone}"
}
},
"icon": "./assets/layers/questions/phone.svg",
"mappings": [
{
"if": "contact:phone~*",
"then": "<a href='tel:{contact:phone}'>{contact:phone}</a>",
"then":{
"special": {
"type": "link",
"href": "tel:{contact:phone}",
"text": "{contact:phone}"
}
},
"hideInAnswer": true,
"icon": "./assets/layers/questions/phone.svg"
}