--- loncom/interface/londocs.pm 2019/08/16 16:12:37 1.484.2.82 +++ loncom/interface/londocs.pm 2019/08/17 12:45:34 1.484.2.84 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.484.2.82 2019/08/16 16:12:37 raeburn Exp $ +# $Id: londocs.pm,v 1.484.2.84 2019/08/17 12:45:34 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2122,7 +2122,7 @@ sub copy_templated_files { if (grep(/^\Q$qtype\E$/,@simpleprobqtypes)) { my %newdata = ( $newprefix.'questiontype' => $qtype, - ) + ); foreach my $type (@simpleprobqtypes) { if ($type eq $qtype) { $newdata{"$weightprefix.$type.weight"}=1; @@ -6547,8 +6547,13 @@ sub editing_js { } else { $url = $res; } - $backtourl = &HTML::Entities::encode(&Apache::lonnet::clutter($url),'<>&"').'?symb='. - &HTML::Entities::encode($caller,'<>&"'); + $backtourl = &HTML::Entities::encode(&Apache::lonnet::clutter($url),'<>&"'); + if ($backtourl =~ m{^\Q/uploaded/$coursedom/$coursenum/\Edefault_\d+\.sequence$}) { + $backtourl .= '?navmap=1'; + } else { + $backtourl .= '?symb='. + &HTML::Entities::encode($caller,'<>&"'); + } if ($backtourl =~ m{^\Q/public/$coursedom/$coursenum/syllabus\E}) { if (($ENV{'SERVER_PORT'} == 443) && ($env{'course.'.$env{'request.course.id'}.'.externalsyllabus'} =~ m{^http://})) {