AEM 6.2 href=tel issue for international numbers | Community
Skip to main content
Level 2
September 5, 2016
Solved

AEM 6.2 href=tel issue for international numbers

  • September 5, 2016
  • 6 replies
  • 5957 views

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.
Best answer by michaele1994690

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

Peter_Puzanovs
Community Advisor
Community Advisor
September 5, 2016

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

kautuk_sahni
Community Manager
Community Manager
September 5, 2016

(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

Kautuk Sahni
Level 2
September 6, 2016

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

michaele1994690AuthorAccepted solution
Level 2
September 6, 2016

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

Jit
Level 2
April 10, 2017

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)

trangt82656326
June 20, 2017

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