[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
raeburn
raeburn at source.lon-capa.org
Mon Sep 4 20:56:42 EDT 2017
raeburn Tue Sep 5 00:56:42 2017 EDT
Modified files:
/loncom/interface londocs.pm
Log:
- "Exit Editor" link in Course Editor takes user back to folder contents
display if reached from an "Edit Folder" icon/link when displaying
a truncated Course Contents view.
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.639 loncom/interface/londocs.pm:1.640
--- loncom/interface/londocs.pm:1.639 Thu Aug 31 20:02:35 2017
+++ loncom/interface/londocs.pm Tue Sep 5 00:56:42 2017
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.639 2017/08/31 20:02:35 raeburn Exp $
+# $Id: londocs.pm,v 1.640 2017/09/05 00:56:42 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -7103,8 +7103,13 @@
} 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://})) {
More information about the LON-CAPA-cvs
mailing list