Hey guys,
Another question for handling of links in AEM Cloud -
We have a simple footer component with footer links -
href="${columnTwoList.subSectionLink @ context='uri'}"
In AMS, the URL is evaulating to /content/a/b.html
However, in AEM Cloud the URL is evaluating to /content/a/b.
Query 1 - Why the difference for the same code?
Query 2 - The publisher is leading to 404 for URLs without .html at the end.
As per my understanding, AEM automatically appends .html for the URLs to be resolved as part of Apache Sling Resolver.
thanks in advance,
Nagesh
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @NageshRaja
By default, .html
is not appended automatically in either AMS or AEMaaCS. In AMS, you may be using link transformation(Sling Output Pipeline) to append .html
as part of the URL structure.
AEM does not automatically appends .html for the URLs. You might have some sling mapping and sling reverse mapping to resolve those urls.
Hi @NageshRaja
By default, .html
is not appended automatically in either AMS or AEMaaCS. In AMS, you may be using link transformation(Sling Output Pipeline) to append .html
as part of the URL structure.
AEM does not automatically appends .html for the URLs. You might have some sling mapping and sling reverse mapping to resolve those urls.
Hi @NageshRaja, as @arunpatidar said "By default, .html is not appended automatically in either AMS or AEMaaCS" which is true. If it is happening in AMS consider checking the rewrite rules in the dispatcher. It is generally handled there.
Please refer: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/add-html-to-sling-internal... for more info.
Views
Likes
Replies
Views
Likes
Replies