--- loncom/interface/lonmenu.pm 2017/09/09 21:30:12 1.478 +++ loncom/interface/lonmenu.pm 2017/09/10 00:11:27 1.479 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.478 2017/09/09 21:30:12 raeburn Exp $ +# $Id: lonmenu.pm,v 1.479 2017/09/10 00:11:27 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -669,7 +669,7 @@ sub innerregister { (!(($crstype eq 'Placement') && !$env{'request.role.adv'}))) { $navmap = Apache::lonnavmaps::navmap->new(); if (ref($navmap)) { - @mapcrumbs = $navmap->recursed_crumbs($mapurl); + @mapcrumbs = $navmap->recursed_crumbs($mapurl,$restitle); } } unless (($forcereg) && @@ -693,8 +693,9 @@ sub innerregister { ($mapurl eq $env{'course.'.$env{'request.course.id'}.'.url'})) { push @crumbs, {text => $maptitle, no_mt => 1, href => $mapurl}; } - - push @crumbs, {text => $restitle, no_mt => 1} if $restitle; + if ($restitle && !@mapcrumbs) { + push(@crumbs,{text => $restitle, no_mt => 1}); + } my @tools; if ($env{'request.filename'} =~ /\.page$/) { my %breadcrumb_tools = &Apache::lonhtmlcommon::current_breadcrumb_tools();