Externalizing links not working for assets | Community
Skip to main content
February 10, 2021

Externalizing links not working for assets

  • February 10, 2021
  • 1 reply
  • 1533 views

Hi,

 

We have have implemented externalizer which works fine for all the links. However src property of images are not externalized. We do not conditionally externalize links.

 

For pages or image components that render within AEM it isn't much of a problem. However this becomes an issue with content fragments. The main reason we create a content fragment is to expose it to outside apps.

 

We have a content fragment which is exposed via the assets api to the react app. If we add and image into the Rich text editor, that image is not externalized making it totally useless to react app. 

 

Any thoughts on how this can be resolved?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

bilal_ahmad
February 11, 2021

Hey guruprasadb9915, Have you tried creating a link transformer for this requirement? just target the <img> tag and update the <src> attribute and it will transform the src the way you want. Thanks!

February 18, 2021
It will not solve the problem as link transformer or externalizer is not triggered when the request is made from assets api. I am not looking for a solution for HTML pages