Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

Pathfinder paths handling difference in AEM Cloud vs AMS

Avatar

Level 4

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

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

 



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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.

 



Arun Patidar

Avatar

Level 6

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.