Creating a link to a "Media Item" doesn't provide target option

Is there a reason that we cannot set a “Media Item” link to open in a new window. We have a client who is linking to PDF versions of their different menus, and would like these to open in a new window. This particular rich text field is also used for other purposes so simply hard-coding target="_blank" into our HTML isn’t an option either.

Thanks,
Chris

Hi @chris.hunt, unfortunately it isn’t possible to set the target on a “Media Item” link from within Prismic. I will let the @features-team know about this and we will add this to our feature request tracker as a possible improvement for the future. We don’t have any plans to work on this right now, but we will let you know here if that changes at any point.

In the meantime, the only workaround I can think of is to set up an HTML Serializer that will add the target blank to any media item link. Here is the documentation for the HTML Serializer with Javascript:
https://prismic.io/docs/javascript/beyond-the-api/html-serializer