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?
Solved! Go to Solution.
Views
Replies
Total Likes
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
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
@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.
How does your generated HTML look like then in the browser? Can you inspect and share that screenshot ?
@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!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies