Custom Rewrite Element entries are not working in CQ Link Checker Transformer Config | Community
Skip to main content
Level 2
June 26, 2024
Solved

Custom Rewrite Element entries are not working in CQ Link Checker Transformer Config

  • June 26, 2024
  • 5 replies
  • 1407 views

Hi Everyone,

             I have added some more custom rewrite element entries[highlighted one in snap] apart from OOTB entries in CQ Link Checker Transformer Configuration. However it's not working which is working only for OOTB entry i.e a:href, img:src.

 

Also If I add custom entries for anchor tag like a:id, a:data-test then it's working. I have refered all the related references in community & outside sources but nothing helped me. Can you people help me on this? Thanks in advance.

 

CC: @arunpatidar @aanchalsikka @imran__khan @briankasingli 

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 Anil_Chennapragada

hi @jerome_lesly_v ,

you can try custom rewriter to ahieve this ask. Please refer to the articles below who faced similar issues and step by step process to implement custom rewriter

https://aem4beginner.blogspot.com/rewrite-adobe-cq-image-src-attribute

https://wttech.blog/blog/2019/how-to-use-sling-transformers-in-aem/

 

5 replies

June 26, 2024

We are also facing the same issue, any help would be much appreciated !!

Anil_ChennapragadaAccepted solution
Level 4
June 26, 2024

hi @jerome_lesly_v ,

you can try custom rewriter to ahieve this ask. Please refer to the articles below who faced similar issues and step by step process to implement custom rewriter

https://aem4beginner.blogspot.com/rewrite-adobe-cq-image-src-attribute

https://wttech.blog/blog/2019/how-to-use-sling-transformers-in-aem/

 

h_kataria
Community Advisor
Community Advisor
June 28, 2024

Hi @jerome_lesly_v  I tried checking this on my local and I observed the same behaviour. I tried digging into OOB code and it seems it only checks for <a> and <area> tags only.

I didn't check it in detail but this seems rather strange as I also couldn't find any documentation mentioning this. But depending on your use case if you want to just map your URLs then you can look into this https://adobe-consulting-services.github.io/acs-aem-commons/features/utils-and-apis/resource-resolver-map-rewriter/index.html otherwise creating a custom transformer would be the possible option.
Hope this helps

kautuk_sahni
Community Manager
Community Manager
July 8, 2024

@jerome_lesly_v Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you! 

Kautuk Sahni