Hello,
I am currently working with Adobe AEM 6.5 in an on-premises environment and would like to find a way to modify the HTML of web pages to automatically replace the img:src, link:href, and script:src attributes. Specifically:
Could you please guide me on the best approach to implement this solution ?
Thank you in advance for your support.
Solved! Go to Solution.
@RobertoLa3 Wwelcome to AEM Experience League community. you reached perfect place to get your AEM queried answered.
We have exact solution already implemented by our fellow Adobe Consulting experts under ACS commons. All it takes is to install ACS commons in your instance which is compatible with your AEM version and do the configuration.
Hi @RobertoLa3,
can you explain the purpose of this change? Why would you use absolute links? Relative links will work well in all AEM instances, with and without CDN.
Daniel
Hi @RobertoLa3 ,
This task can be solved by implementing HTML Transformer. Take into account that this transformer can make worse HTML generation time.
Links:
- https://wttech.blog/blog/2019/how-to-use-sling-transformers-in-aem/
- https://medium.com/@toimrank/link-checker-and-transformer-381d4f245d12
- https://kiransg.com/2021/11/07/aem-transformer-best-practices/
Best regards,
Kostiantyn Diachenko.
Hi, As @konstantyn_diachenko mentioned link transformer makes the page generation very slow . I would recommend to use proxy at CDN level when any request starts with /etc.clientlibs or /content/dam to map to cdn domain instead of sending request to dispatcher.
@RobertoLa3 Wwelcome to AEM Experience League community. you reached perfect place to get your AEM queried answered.
We have exact solution already implemented by our fellow Adobe Consulting experts under ACS commons. All it takes is to install ACS commons in your instance which is compatible with your AEM version and do the configuration.
Hi @RobertoLa3
I believe this is similar to and older topic: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/is-there-any-way-to-get-fu...
Solution was to use "Output Rewriting Pipelines".
Views
Likes
Replies