diff --git a/core/modules/overlay/overlay-parent.js b/core/modules/overlay/overlay-parent.js index 57368bfa537fcb7a4874d4be9ef4f2fd56acd41a..b406a9739ad5acfd2865237d136de53cf5ce36c4 100644 --- a/core/modules/overlay/overlay-parent.js +++ b/core/modules/overlay/overlay-parent.js @@ -618,8 +618,11 @@ Drupal.overlay.eventhandlerOverrideLink = function (event) { $target.attr('href', $.param.querystring(href, { destination: fragmentizedDestination })); } - // Make the link open in the immediate parent of the frame. - $target.attr('target', '_parent'); + // Make the link open in the immediate parent of the frame, unless the + // link already has a different target. + if (!$target.attr('target')) { + $target.attr('target', '_parent'); + } } } }