--- loncom/auth/switchserver.pm 2018/03/23 01:01:29 1.39 +++ loncom/auth/switchserver.pm 2018/04/14 02:30:11 1.40 @@ -1,7 +1,7 @@ # The LearningOnline Network # Switch Servers Handler # -# $Id: switchserver.pm,v 1.39 2018/03/23 01:01:29 raeburn Exp $ +# $Id: switchserver.pm,v 1.40 2018/04/14 02:30:11 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -235,6 +235,9 @@ sub handler { if ($env{'request.lti.login'}) { $info{'lti.login'} = $env{'request.lti.login'}; } + if ($env{'request.lti.uri'}) { + $info{'lti.uri'} = $env{'request.lti.uri'}; + } if ($env{'request.lti.reqcrs'}) { $info{'lti.reqcrs'} = $env{'request.lti.reqcrs'}; } @@ -259,6 +262,9 @@ sub handler { if ($env{'request.lti.rosterurl'}) { $info{'lti.rosterurl'} = $env{'request.lti.rosterurl'}; } + if ($env{'request.lti.target'}) { + $info{'lti.target'} = $env{'request.lti.target'}; + } my $token = &Apache::lonnet::tmpput(\%info,$env{'form.otherserver'}); my $url =$protocol.'://'.$switch_to.'/adm/login?'. 'domain='.$env{'user.domain'}.