Hi Team,
While exporting experience fragment to target , for element value like -
<a href="tel:155555555"> is getting converted to <a href="https://<externalizer-domain>/#tel:155555555"
and link behaviour after export stops working.
Believe this is happening w.r.t Experience Fragments Overview | Adobe Experience Manager.
Want to know how we can handle the use case not to append domain when href has tel:.
Note - We have implemented
ExperienceFragmentLinkRewriterProvider
but it is not getting called while we are exporting the experience fragment to target.
Solved! Go to Solution.
Views
Replies
Total Likes
This will be invoked if the request uses the selector .atoffer
, as explained in the blog. For example, if you have an Experience Fragment (XF) located at /content/experience-fragments/myXF/master.html
, the rewrite will be triggered when you call upon /content/experience-fragments/myXF/master.atoffer.html
. Make sure to register the selector as outlined in the blog.
For example:
Hope this helps
cc:- @arunpatidar @Jörg_Hoh
Add tel: to the Link Checker Special Link Prefixes http://localhost:4502/system/console/configMgr/com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl
or
Add condition to overriden rewriteLink method to return link in case value starts with tel:
Hi @NehaCMS ,
We may put a condition if link doesn't start with tel: then only rewrite in rewriteLink method
Also check the priority if custom Rewriter doesn't get invoked
https://exadel.com/news/aem-experience-fragments-url-externalization-with-adobe-target/
Thanks
Hi,
Please check out this blog: https://exadel.com/news/aem-experience-fragments-url-externalization-with-adobe-target/. It clearly explains what is happening and provides an example of how to address it. From the blog, you can see the code example. You should add a condition to the rewriteLink()
method to check if the link starts with the "tel:" attribute. If this is not being called, check your rewrite configurations. As the blog explains, you should register a selector so that it is invoked when requested from outside of AEM.
Hope this helps!
hi @EstebanBustamante @MukeshYadav_ @Hemant_arora -
We are overriding but the code is not getting called, we tried increasing the priority as well. Any pointer there
This will be invoked if the request uses the selector .atoffer
, as explained in the blog. For example, if you have an Experience Fragment (XF) located at /content/experience-fragments/myXF/master.html
, the rewrite will be triggered when you call upon /content/experience-fragments/myXF/master.atoffer.html
. Make sure to register the selector as outlined in the blog.
For example:
Hope this helps
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies