--- loncom/interface/lontiny.pm 2018/04/14 02:29:44 1.2 +++ loncom/interface/lontiny.pm 2018/05/10 03:49:51 1.3 @@ -2,7 +2,7 @@ # Extract domain, courseID, and symb from a shortened URL, # and switch role to a role in designated course. # -# $Id: lontiny.pm,v 1.2 2018/04/14 02:29:44 raeburn Exp $ +# $Id: lontiny.pm,v 1.3 2018/05/10 03:49:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -276,13 +276,16 @@ ENDJS sub generic_error { my ($r) = @_; - my $linktext; - if ($env{'user.adv'}) { - $linktext = &mt('Continue to your roles page'); - } else { - $linktext = &mt('Continue to your courses page'); + my $continuelink; + unless ($env{'request.lti.login'}) { + my $linktext; + if ($env{'user.adv'}) { + $linktext = &mt('Continue to your roles page'); + } else { + $linktext = &mt('Continue to your courses page'); + } + $continuelink=''.$linktext.''; } - my $continuelink=''.$linktext.''; my $msg = &mt('The page you requested does not exist.'); &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header;