--- loncom/interface/lonmenu.pm 2005/01/31 19:20:47 1.141 +++ loncom/interface/lonmenu.pm 2005/02/02 19:24:45 1.143 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.141 2005/01/31 19:20:47 albertel Exp $ +# $Id: lonmenu.pm,v 1.143 2005/02/02 19:24:45 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -979,7 +979,8 @@ sub utilityfunctions { my $caller = shift; unless (($ENV{'browser.interface'} eq 'textual') || ($ENV{'environment.remote'} eq 'off') || ($caller eq '/adm/menu')) { return ''; } - my $currenturl=&Apache::lonenc::check_encrypt($ENV{'request.noversionuri'}); + my $currenturl=&Apache::lonnet::clutter(&Apache::lonnet::fixversion((split(/\?/,$ENV{'request.noversionuri'}))[0])); + $currenturl=&Apache::lonenc::check_encrypt(&Apache::lonnet::unescape($currenturl)); my $currentsymb=&Apache::lonenc::check_encrypt($ENV{'request.symb'}); my $nav_control=&nav_control_js(); @@ -1147,7 +1148,7 @@ sub handler { $tabbg=&Apache::loncommon::designparm($function.'.tabbg',$domain); $font=&Apache::loncommon::designparm($function.'.font',$domain); my $script_tag; - if ($ENV{'environment.remote'} eq 'on') { + if ($ENV{'environment.remote'} ne 'off') { my $utility=&utilityfunctions('/adm/menu'); $script_tag=(<