Hello,
I have a problem with AEM links rewriting. I have a set of mappings that works correctly for my site. All links in content are mapped nad works fine.
The problem happened when my component (for example core components RTE) links to a page that is not published. In that case link is not mapped and I can see in cached HTML file that the link is `/content/my-site./en/not-existing` isntead of `/en/not-existing`. When I publish `not-existign` page and clear cache link is correctly mapped.
Is that a new feature of AEM / Sling mappings? Can I change that ? I would like to avoid having unmapped links even if they points to 404 page.
AEM 6.5.9
Link checker transformer config:
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
linkcheckertransformer.strictExtensionCheck="false"
linkcheckertransformer.rewriteElements="[a:href,area:href,form:action,img:src,link:href,script:src]"
linkcheckertransformer.stripExtensionPathBlacklist="[]"
linkcheckertransformer.disableRewriting="false"
linkcheckertransformer.disableChecking="true"
linkcheckertransformer.stripHtmltExtension="true"
linkcheckertransformer.mapCacheSize="5000"/>