An AEM Link Rewriter service is implemented as an OSGi bundle that contains a Java class that extends the org.apache.sling.rewriter.Transformer class. For information, see Interface Transformer.
NOTE: For more details, see Apache Sling Rewriter.
This development article walks you through how to create an AEM Link Rewriter service that modifies links the references the following content:
- A PDF document
- A MS Word document
- A MS Excel file
For example, if a link within an AEM We Retail web page references a PDF in the AEM DAM, the link is modified by the service. The AEM service adds a PDF icon to the link, as shown in the following illustration.
To read this development article, click https://helpx.adobe.com/experience-manager/using/aem63_link_rewriter.html.