AEM 6.2 href=tel issue for international numbers | Community
Skip to main content
Level 2
Sep 5, 2016 4:31 AM UTC
Solved

AEM 6.2 href=tel issue for international numbers

Hi,

when using href=tel for international numbers  href=tel:+61....   AEM removes the link - any idea how to get it to stop stripping the code?

Also, how to make the link section of the Rich Text Editor to have TEL and mailto as options?

thanks

Michael

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
michaele1994690Accepted solution
Level 2
Sep 6, 2016 11:55 PM UTC

Hi all,

if you have the same issue - solution here:  https://experience-aem.blogspot.com.au/2015/05/aem-6-sp2-handling-custom-protocol-in-link-href-in-rte.html

Read the comments, i have added to code also allow a plus sign for international numbers

Michael

6 replies

trangt82656326
New Participant
Jun 20, 2017 6:14 AM UTC

Your comments is removed, so what is your answer for the international numbers if it's not by adding a new protocol tel:+?

Translate
Jit
Level 2
Apr 10, 2017 2:01 PM UTC

In 6.1 SP2 you also need to modify: /etc/clientlibs/granite/coralui2/optional/rte/js/core/HtmlRules.js to add tel:+ in the list of allowed protocols (~ln 250) otherwise, the editor strips out the tel number (ie. tel:123 will work but tel:+123 will be stripped out when trying to edit the number again in a text component)

Translate
michaele1994690AuthorAccepted solution
Level 2
Sep 6, 2016 11:55 PM UTC

Hi all,

if you have the same issue - solution here:  https://experience-aem.blogspot.com.au/2015/05/aem-6-sp2-handling-custom-protocol-in-link-href-in-rte.html

Read the comments, i have added to code also allow a plus sign for international numbers

Michael

Translate
Level 2
Sep 6, 2016 3:43 AM UTC

thanks all - while that should work - it adds the link - but then strips the code when you View as Published - i have submitted a Daycare ticket

Translate
kautuk_sahni
Employee
Sep 5, 2016 10:22 AM UTC

(Answer given by justin)

You need to add 'tel:' as a "Special Link Prefix" in the configuration of the CQ Link Checker Service.
 
To do this, copy /libs/cq/linkchecker/config/com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl to a config folder under apps (e.g. /apps/myapp/config). Then edit the property service.special_link_prefix to add tel: as a new prefix.

Link:- https://forums.adobe.com/thread/1127899\

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__oxe6-hi_when_usinghre.html

Link:- http://labs.6dglobal.com/blog/2013-01-11/configuring-telephone-tags-within-rich-text-components-and-link-checker/

 

~kautuk

Translate
Kautuk Sahni
Peter_Puzanovs
New Participant
Sep 5, 2016 9:27 AM UTC

Hi Michael,

In AEM you have a tool called Link Check[1], it's main purpose it to check validity of links.

Here's a link to the example how to fix your problem with telephone[2]

[1] https://docs.adobe.com/docs/en/aem/6-2/administer/operations/external-link-checker.html

[2] http://aemexperience.blogspot.co.uk/2015/07/aem-link-checker-fixing-broken-links.html

Regards,

Peter

Translate