--- loncom/interface/londocs.pm 2017/08/28 03:57:04 1.638 +++ loncom/interface/londocs.pm 2017/09/05 00:56:42 1.640 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.638 2017/08/28 03:57:04 raeburn Exp $ +# $Id: londocs.pm,v 1.640 2017/09/05 00:56:42 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -6477,8 +6477,8 @@ unless ($container eq 'page') { if ($error) { $r->print('

'.$error.'

'); } - unless (&is_hash_old()) { - if ($hadchanges) { + if ($hadchanges) { + unless (&is_hash_old()) { &mark_hash_old(); } } @@ -7103,8 +7103,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://})) {