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

Phone Link gets rewritten

  • March 1, 2017
  • 4 replies
  • 1666 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

carloso98118279
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

edubey
edubeyAccepted solution
Level 10
March 2, 2017
kautuk_sahni
Community Manager
Community Manager
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
Daniel_H__A__Li
Level 2
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.