Phone Link gets rewritten | Community
Skip to main content
carloso98118279
New Participant
March 1, 2017
Solved

Phone Link gets rewritten

  • March 1, 2017
  • 4 replies
  • 1662 views

I'm using Sightly

<a href="tel:${phone}">${phone}</a>

the phone number is getting printed correctly but inside the link "tel:" is getting replaced by "_tel_" which breaks the link to work as a phone link. I can't found anything in the Sightly documentation about it. I tried using context unsafe and context html but none worked.

How I stop that link to getting rewritten?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Daniel_H__A__Li
New Participant
March 2, 2017

carloso98118279 wrote...

I'm using Sightly

  1. <a href="tel:${phone}">${phone}</a>

the phone number is getting printed correctly but inside the link "tel:" is getting replaced by "_tel_" which breaks the link to work as a phone link. I can't found anything in the Sightly documentation about it. I tried using context unsafe and context html but none worked.

How I stop that link to getting rewritten?

Thanks

 

 

I've accidentally deleted my answer:

 

Hi, Carlos.

Link Checker is probably the culprit.

Have you tried any of the approaches described here: https://helpx.adobe.com/experience-manager/kb/DisableLinkChecker.html?

As a first test, I would disable Link Checker and Link Transformer for all URLs. If it really is the offender,  as the next step, I would re-enable it and properly adjust the regexps.

Regards,

Daniel.

 

but Praveen has already answered this one...

Regards,

Daniel.

kautuk_sahni
Employee
March 2, 2017

Please try what Praveen suggested, 

There is a hotfix which seems to cater the problem you are facing here.

               
DateNameDescriptionFixed IssuesReplaces
Feb 4th, 2016Hotfix 9130XSS vulnerabilityCQ-70200 : Extra underscore added for anchor links 

~kautuk

Kautuk Sahni
edubey
edubeyAccepted solution
New Participant
March 2, 2017
carloso98118279
New Participant
March 2, 2017

I tried to disable the Link Checker just for that link using x-cq-linkchecker=”skip” but that doesn't seem to work on Sightly.

What's the idiomatic way to disable just one link in Sightly? Not sure what you mean with adjust the regexps?

Thanks