[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonprintout.pm

raeburn raeburn at source.lon-capa.org
Sat Aug 6 16:52:43 EDT 2016


raeburn		Sat Aug  6 20:52:43 2016 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonprintout.pm 
  Log:
  - For 2.11
    - Backport 1.648
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.627.2.15 loncom/interface/lonprintout.pm:1.627.2.16
--- loncom/interface/lonprintout.pm:1.627.2.15	Thu Jun  4 13:03:36 2015
+++ loncom/interface/lonprintout.pm	Sat Aug  6 20:52:43 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.627.2.15 2015/06/04 13:03:36 raeburn Exp $
+# $Id: lonprintout.pm,v 1.627.2.16 2016/08/06 20:52:43 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3444,13 +3444,16 @@
 	#}
     }
 
-    # Set URLback if this is a construction space print so we can provide
-    # a link to the resource being edited.
-    #
+    # Set URLback so we can provide a link back to the resource and to change options.
+    # (Since the browser back button does not currently work with https,
+    # the back link is useful even when there is an easy-to-miss LON-CAPA back button.)
 
     my $URLback=''; #link to original document
     if ($helper->{'VARS'}->{'construction'} eq '1') {
 	$URLback=$helper->{'VARS'}->{'filename'};
+    } elsif ($helper->{VARS}{'symb'}) {
+        my ($map, $id, $url) = &Apache::lonnet::decode_symb($helper->{VARS}{'symb'});
+        $URLback = &Apache::lonnet::clutter($url);
     }
     #
     # Final adjustment of the font size:




More information about the LON-CAPA-cvs mailing list