wcm-io / io.wcm.handler.link

Link resolving, processing and markup generation.
Apache License 2.0
1 stars 2 forks source link

Support detecting redirect pages using AEM cq:redirectTarget property #14

Closed stefanseifert closed 2 months ago

stefanseifert commented 2 months ago

Support detecting redirect pages using AEM cq:redirectTarget property (instead of link handler properties) If link handler properties (with linkType) are present, they have precedence over a cq:redirectTarget property.

to enable it, you might have to extend your LinkHandlerConfig implementation to support either specific redirect template, or any page with a cq:redirectTarget property set. example: https://github.com/wcm-io/aem-guides-wknd-wcmio/blob/79093d111d1cb9ffd80d56d6a922d43ac3563eac/core/src/main/java/com/adobe/aem/guides/wknd/core/config/impl/LinkHandlerConfigImpl.java#L45-L48

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
95.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud