[LON-CAPA-cvs] cvs: rat / lonsequence.pm

raeburn raeburn at source.lon-capa.org
Thu Sep 3 08:14:30 EDT 2020


raeburn		Thu Sep  3 12:14:30 2020 EDT

  Modified files:              
    /rat	lonsequence.pm 
  Log:
  - Don't set "last_known" symb, if current resource is /adm/navmaps (users
    always have access to "Contents" item in inline menu).
  
  
Index: rat/lonsequence.pm
diff -u rat/lonsequence.pm:1.51 rat/lonsequence.pm:1.52
--- rat/lonsequence.pm:1.51	Wed Jan 16 20:23:42 2019
+++ rat/lonsequence.pm	Thu Sep  3 12:14:30 2020
@@ -2,7 +2,7 @@
 #
 # Sequence Handler
 #
-# $Id: lonsequence.pm,v 1.51 2019/01/16 20:23:42 raeburn Exp $
+# $Id: lonsequence.pm,v 1.52 2020/09/03 12:14:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -417,8 +417,12 @@
       if ($is_encrypted) {
           $showdisurl = &Apache::lonenc::encrypted($disurl);
       }
-      &Apache::lonnet::symblist($requrl,$disurl => [$disurl,$dismapid],
-				'last_known' => [$disurl,$dismapid]); 
+      if ($disurl =~ m{/adm/navmaps(\?|$)}) {
+          &Apache::lonnet::symblist($requrl,$disurl => [$disurl,$dismapid]);
+      } else {
+          &Apache::lonnet::symblist($requrl,$disurl => [$disurl,$dismapid],
+                                    'last_known' => [$disurl,$dismapid]);
+      }
       &Apache::loncommon::content_type($r,'text/html');
       $r->header_out(Location => &Apache::lonnet::absolute_url($ENV{'SERVER_NAME'}).
                                  $showdisurl);




More information about the LON-CAPA-cvs mailing list