The current extlink module has a setting to take all external links found, and set the target attribute to "_blank". I like this setting, but I want to give editors the ability to specify where they want the link to open, if necessary. So, if I know I want a link to open in _self and I put that in my HTML, I think extlink should leave it alone and not change _self to _blank.

I built this in a similar fashion to 2874092 which appears to already have the maintainers blessing. I used similar named variables and form behavior. The general behavior here is that when this setting is checked, the links are filtered out of the list of links that have target=_blank set. It's pretty straight forward.

Note: this does not update the minified file, as I also opened 2929552 to remove that file, per discussion on other threads I found.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dpagini created an issue. See original summary.

  • elachlan committed 76764e2 on 8.x-1.x authored by dpagini
    Issue #2929561 by dpagini: Add setting to leave links with target...
elachlan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.