You can build a custom transformer. Just like LinkRewriter, you can build your own rewriter that can replace all links with your custom logic. And for paths starting with /content/dam, write a logic to retrieve redirect url from metadata and replace the url with it. https://sling.apache.org/document...