Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Target blank download

Avatar

Level 3

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Community Advisor

Hi @SarahBo2 ,

Download in new Tab? isn't it same it just download?

Do you want to open in new tab?

Could you please clear.

Thanks

Avatar

Level 3

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?

Avatar

Community Advisor

@SarahBo2 

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

Avatar

Community Advisor

@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/