in AEM 6.3, we define the URL mapping in the JcrResourceResolverFactoryImpl.config.xml file. When author selects a content URL as a path in the component dialog,
if we render the url as <a href="${link.url@ extension = 'html'}">, the AEM automatically shortens the url. However, if we remove the extension <a href="${link.url}">, the AEM doesn't shorten the URL.
Just wonder if anyone knows if there is a linker check related configuration to tell adobe only shorten the url when the path has .html?
Thanks.
Solved! Go to Solution.
The URL shortening is a function of the LinkRewriter, and this rewriter acts only links containing an extension. If you omit the extension (e.g. ".html") it's not rewritten.
Jörg
The URL shortening is a function of the LinkRewriter, and this rewriter acts only links containing an extension. If you omit the extension (e.g. ".html") it's not rewritten.
Jörg
Add an exception to the link checker to tell it to ignore certain URL patterns. To do this, do the following:
http://[host]:[port]/crxde
as admin/libs/cq/linkchecker/config.author/com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl
to /apps/[yourapp]/config/com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl
com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl
service.check_override_patterns
www.mycompany.com
, then your override pattern would be: ^http://www.mycompany.com/.*
/var/linkchecker
corresponding to the invalid link's host/var/linkchecker/http/www.mycompany.com
Views
Replies
Total Likes
Thanks Hermant.
I think Jörg answered my question. Your approach will work for single site, I have multiple sites, don't want to put something only applying for one site.
Thanks again.
Views
Replies
Total Likes
Views
Likes
Replies