DAM Path Shortening
Hi,
We need to shorten some DAM PDF url in our website.
E.g.
if PDF Path is:
/content/dam/cms/myproject/resources/documents/mydoc.pdf,
on page, whether is a href or img src, It should display like /Documents/mydoc.pdf
Added rule as below in Sling Resource Resolver Factory:
^/content/dam/cms/myproject/resources/documents/</Documents/

When I try to check if it maps to right url, it looks all good.

However, It does not shorten PDF urls on the Pages, whereas all rewrite rules for Pages work fine.
1) Do we need to write custom sling rewriter to handle this scenario?
OR
2) Something is missing out here?
FYI:@arunpatidar @ AvinashGupta01 @kautuk_sahni ,