Skip to main content
1 of 2
Chriki
  • 281
  • 2
  • 10

How to preserve a “target” attribute on links in overlays?

How can I preserve target attribute functionality in Drupal 7 overlays? They appear to always be overwritten with target="_parent".

Just like halo_smyth on drupal.org, I have added a link to the help text of a field. I would like to open the link in a new browser tab/window so that the user’s input is not lost when following the link. However, the target attribute appears to be overwritten and the link then opens in the same overlay.

Here’s the relevant portion of the help text:

 I agree to the site’s <a href="../../node/5" target="_blank">Terms of Use</a>.
Chriki
  • 281
  • 2
  • 10