--- loncom/interface/lonhelpmenu.pm 2022/05/30 00:17:38 1.48 +++ loncom/interface/lonhelpmenu.pm 2022/05/30 12:31:06 1.49 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # generate frame-based help system # -# $Id: lonhelpmenu.pm,v 1.48 2022/05/30 00:17:38 raeburn Exp $ +# $Id: lonhelpmenu.pm,v 1.49 2022/05/30 12:31:06 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -403,15 +403,13 @@ sub display_help_mainpage { {'only_body' => 1,})); } 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')) { + if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) || + (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self'))) { $target = '_parent'; } if ($stayOnPage) { $r->print('
'); - } + } $r->print(''.$lt{'chen'}); if ($requestmail) { $r->print(', '.$lt{'orto'});