May 3, 2020
Estimated Post Reading Time ~

Appending .html to the URL in Sightly

<a href="${properties.path ? '{0}.{1}' : 'Default Path'  @ format=[properties.path,'html']}" class="link">${properties.title || 'Default Title'}</a>

Or

<a href="${currentPage.path @ extension = 'html'}">${currentPage.title}</a>


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.