Hi, I'm tryng to use a target="_blank" on an "href" element to enable download on an other tab. But it is not working. The component is within a content fragment. Is there a known issue on this function?
Thank you in advance,
Sarah
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
It should work.
If link is getting removed then you may check antisamy or XSS sanitization mentioned in other reply.
If link is there and still not working, you may check if JS is overriding the behaviour on click.
Or share some more context/snippet if you still face the issue.
Thanks
yes, the client would like that when you click on the download button it opens in a new tab.
Is it possible or does adobe has restrictions on this functionality?
Views
Replies
Total Likes
It should work.
If link is getting removed then you may check antisamy or XSS sanitization mentioned in other reply.
If link is there and still not working, you may check if JS is overriding the behaviour on click.
Or share some more context/snippet if you still face the issue.
Thanks
@SarahBo2 Probably the issue is with antisamy or XSS sanitization.
Refer to this article if that is the case - https://aemcorner.com/rte-open-in-new-window-not-working/
Views
Likes
Replies