Pathfinder paths handling difference in AEM Cloud vs AMS | Community
Skip to main content
NageshRaja
Level 5
January 10, 2025
Solved

Pathfinder paths handling difference in AEM Cloud vs AMS

  • January 10, 2025
  • 2 replies
  • 571 views

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

 

 

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

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.

 

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
January 10, 2025

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
kapil_rajoria
Community Advisor
Community Advisor
January 10, 2025

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-internalredirect/td-p/584061 for more info.