Expand my Community achievements bar.

SOLVED

Html extension is not added in aem cloud

Avatar

Level 1

In aem 6.5 ,  <a href="${item.path}.html" > was working perfectly. But in cloud publisher environment, ${item.path}.html or ${item.path @ extension = 'html'} none of them are working. We get the whole url but the page extension .html is not adding. We have added etc/map in our codebase. How can I get html extension in the cloud environment?

 

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi @nusratja,

 

this should work fine. Is it happening on author or only publisher? Are you sure you don't have a rewrite rule in Dispatcher removing the .html extension?

 

Good luck,

Daniel

View solution in original post

4 Replies

Avatar

Correct answer by
Level 9

Hi @nusratja,

 

this should work fine. Is it happening on author or only publisher? Are you sure you don't have a rewrite rule in Dispatcher removing the .html extension?

 

Good luck,

Daniel

Avatar

Community Advisor

@nusratja Looks like you are stripping off the extension (.html in this case) using a rewrite rule either at dispatcher or at the CDN level if you are using something like an Akamai in front of AEM. You might want to check that out first.

Avatar

Community Advisor

How does your generated HTML look like then in the browser? Can you inspect and share that screenshot ?

Avatar

Administrator

@nusratja Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni