--- loncom/interface/lonmenu.pm 2014/01/06 15:05:50 1.425 +++ loncom/interface/lonmenu.pm 2014/12/20 15:35:40 1.430 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.425 2014/01/06 15:05:50 raeburn Exp $ +# $Id: lonmenu.pm,v 1.430 2014/12/20 15:35:40 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -514,7 +514,7 @@ sub create_submenu { if ($count == $numsub) { $borderbot = 'border-bottom:1px solid black;'; } - if ($href ne '') { + unless (($href eq '') || ($href =~ /^\#/)) { $target = ' target="_top"'; } $menu .= '