AEM 6.5: HTL @ extension = 'html' doesn't work for external links

Avatar

Avatar

nikunjj81682294

Avatar

nikunjj81682294

nikunjj81682294

17-09-2019

${ link @ extension = 'html' } if link is https://www.google.com/resources then the output is https://www.google.com/resources.html. This is not the expected behavior according to the documentation. Any help is appreciated. Thanks, Nikunj Jariwala

View Entire Topic

Avatar

Avatar

SonDang

Employee

Avatar

SonDang

Employee

SonDang
Employee

17-09-2019

I do not think that HTL has such functionality to distinguish internal/external links. You will need to write something custom to handle case a use case. Take a look at this [1] to help you in creating this customization.

[1] https://wcm.io/handler/link/usage.html