Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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.

user04477_0-1719382522426.png

 

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 

1 Accepted Solution

Avatar

Correct answer by
Level 4

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/

 

View solution in original post

5 Replies

Avatar

Level 1

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

Avatar

Correct answer by
Level 4

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/

 

Avatar

Community Advisor

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.

h_kataria_0-1719552716122.png

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-resolve... otherwise creating a custom transformer would be the possible option.
Hope this helps

Avatar

Administrator

@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