--- loncom/interface/loncommon.pm 2004/01/02 19:23:47 1.169 +++ loncom/interface/loncommon.pm 2004/01/02 21:00:56 1.170 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.169 2004/01/02 19:23:47 www Exp $ +# $Id: loncommon.pm,v 1.170 2004/01/02 21:00:56 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -235,10 +235,11 @@ of the element the selection from the se =cut sub browser_and_searcher_javascript { + my $resurl=&lastresurl(); return < $resurl}); + &Apache::lonnet::appenv('environment.lastresurl' => $resurl); + return 1; +} + sub studentbrowser_javascript { unless ( (($ENV{'request.course.id'}) &&