Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.2 href=tel issue for international numbers

michaele1994690
Level 2
Level 2

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

1 Accepted Solution
michaele1994690
Correct answer by
Level 2
Level 2

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-rt...

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

Michael

View solution in original post

6 Replies
Peter_Puzanovs
Community Advisor
Community Advisor

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

(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-manage...

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

 

~kautuk

michaele1994690
Level 2
Level 2

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

michaele1994690
Correct answer by
Level 2
Level 2

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-rt...

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

Michael

View solution in original post

Jit
Level 2
Level 2

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
Level 1
Level 1

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