--- rat/lonuserstate.pm 2002/08/17 17:40:06 1.37 +++ rat/lonuserstate.pm 2002/08/31 00:43:13 1.39 @@ -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.37 2002/08/17 17:40:06 www Exp $ +# $Id: lonuserstate.pm,v 1.39 2002/08/31 00:43:13 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -122,7 +122,8 @@ sub loadmap { $turi=~s/^http\:\/\//\/adm\/wrapper\/ext\//; } else { my $embstyle=&Apache::loncommon::fileembstyle($1); - if (($embstyle eq 'img') || ($embstyle eq 'emb')) { + if (($embstyle eq 'img') || ($embstyle eq 'emb') + || ($turi=~/\/syllabus$/) || ($turi=~/\/aboutme$/)) { $turi='/adm/wrapper'.$turi; } } @@ -462,7 +463,7 @@ sub readmap { %parmhash=(); $errtext=''; $pc=0; - my $furi='/res/'.&Apache::lonnet::declutter($uri); + my $furi=&Apache::lonnet::clutter($uri); $hash{'src_0.0'}=$furi; $hash{'title_0.0'}=&Apache::lonnet::metadata($uri,'title'); $hash{'ids_'.$furi}='0.0';