--- loncom/interface/lonhelpmenu.pm 2022/05/24 16:23:03 1.47 +++ loncom/interface/lonhelpmenu.pm 2022/05/30 00:17:38 1.48 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # generate frame-based help system # -# $Id: lonhelpmenu.pm,v 1.47 2022/05/24 16:23:03 raeburn Exp $ +# $Id: lonhelpmenu.pm,v 1.48 2022/05/30 00:17:38 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -180,12 +180,14 @@ sub helpmenu_items { lastloc => 'Go back', close => 'Close', ); - my $target = '_top'; - if (($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) { - $target = '_parent'; - } - if (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self')) { + my ($target,$bugs_target); + if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) || + (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self'))) { $target = '_parent'; + $bugs_target = '_blank'; + } else { + $target = '_top'; + $bugs_target = '_top'; } my %items = ( general => { @@ -218,6 +220,7 @@ sub helpmenu_items { img => $location.'/lonMisc/smallBug.gif', alt => $lt{'bugs'}, text => $lt{'bugs'}, + target => $bugs_target, }, manuals_web => { href => '',