How to get href="tel:phonenumber" working? | Community
Skip to main content
anjali_biddanda
New Participant
October 16, 2015
Solved

How to get href="tel:phonenumber" working?

  • October 16, 2015
  • 11 replies
  • 6561 views

Hi,

 

I've seen your discussions in https://forums.adobe.com/thread/1127899 regarding the same.

 

I'd already tried adding 'tel:' to 'Special Link Prefix' in CQ Link Checker Service configuration. I've also tried adding x-cq-linkchecker="skip" to the <a> tags. I'm using AEM6. I'm using a sightly template - does this x-cq-linkchecker="skip" work in Sightly?

 

I've followed your steps and added a com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl under /apps/<myapp>/config, and no luck!

 

I've also tried turning off linkchecker entirely by disabling it in Day CQ Link Checker Transformer. And this has no effect! 

 

Any help will be appreciated.

 

Thanks.

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 leeasling

You need to overlay /libs/cq/xssprotection/config.xml in apps and modify the configuration, specifically the "offsiteURL" regular expression on line 58 (in 6.1).

<regexp name="offsiteURL" value="(\s)*((ht|f)tp(s?)://|mailto:)[\p{L}\p{N}]+[\p{L}\p{N}\p{Zs}\.\#@\$%\+&amp;;:\-_~,\?=/!\*\(\)]*(\s)*"/>

You can change to:

<regexp name="offsiteURL" value="(\s)*((ht|f)tp(s?)://|mailto:|tel:)[\p{L}\p{N}]+[\p{L}\p{N}\p{Zs}\.\#@\$%\+&amp;;:\-_~,\?=/!\*\(\)]*(\s)*"/>

11 replies

anjali_biddanda
New Participant
October 16, 2015

And thank you to Jorg and edubey too for your input.