--- loncom/interface/lonnavmaps.pm 2004/02/12 18:00:33 1.246
+++ loncom/interface/lonnavmaps.pm 2004/02/24 16:09:30 1.248
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.246 2004/02/12 18:00:33 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.248 2004/02/24 16:09:30 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -290,8 +290,15 @@ sub getLinkForResource {
# Check to see if there are any pages in the stack
foreach $res (@$stack) {
- if (defined($res) && $res->is_page()) {
- return $res->src();
+ if (defined($res)) {
+ if ($res->is_page()) {
+ return $res->src();
+ }
+ # in case folder was skipped over as "only sequence"
+ my ($map,$id,$src)=&Apache::lonnet::decode_symb($res->symb());
+ if ($map=~/\.page$/) {
+ return &Apache::lonnet::clutter($map);
+ }
}
}
@@ -1587,7 +1594,12 @@ sub render {
# it's quite likely this might fix other browsers, too, and
# certainly won't hurt anything.
if ($displayedJumpMarker) {
- $result .= "\n";
+ $result .= "
+";
}
$result .= "";