--- rat/lonuserstate.pm 2021/08/21 03:42:02 1.167 +++ rat/lonuserstate.pm 2022/05/29 12:10:17 1.168 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construct and maintain state and binary representation of course for user # -# $Id: lonuserstate.pm,v 1.167 2021/08/21 03:42:02 raeburn Exp $ +# $Id: lonuserstate.pm,v 1.168 2022/05/29 12:10:17 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1635,6 +1635,9 @@ sub build_tmp_hashes { } if ($disallow) { &Apache::lonnet::delenv('request.deeplink.login'); + if ($env{'request.deeplink.target'} ne '') { + &Apache::lonnet::delenv('request.deeplink.target'); + } } else { if ($others eq 'hide') { my @recfolders;