I have set the redirect url property for an asset. Now when I author that asset on a page as a CTA or HREF, I want the page to show the redirect url value on hover of the link instead of the asset url authored.
I was reading through Apache Output Rewriting Pipelines as an prospective solution but I am finding very limited resources on it to understand the entire workflow and use case.
Need your help understand the best solution in this case.
Views
Replies
Total Likes
How have you set the redirect url property for an asset?
If you are only concerned about displaying the redirect URL on hover of the image, You can implement client-side scripting, such as JavaScript/CSS, to display the redirect URL value as a tooltip or on hover of the CTA or HREF element.
The redirect url is present in the "metadata" of the asset. Moreover I am concerned about displaying the redirect url on hovering over a link in the page.
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.
Hope this helps.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies