--- loncom/interface/lonhtmlcommon.pm 2004/01/26 19:55:44 1.41
+++ loncom/interface/lonhtmlcommon.pm 2004/01/29 00:51:06 1.43
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.41 2004/01/26 19:55:44 www Exp $
+# $Id: lonhtmlcommon.pm,v 1.43 2004/01/29 00:51:06 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -924,10 +924,11 @@ sub crumbs {
my ($uri,$target,$prefix,$form)=@_;
my $output='
'.$prefix.'/';
if ($ENV{'user.adv'}) {
- my $path=$prefix;
+ my $path=$prefix.'/';
foreach (split('/',$uri)) {
unless ($_) { next; }
- $path.='/'.$_;
+ $path.=$_;
+ unless ($path eq $uri) { $path.='/'; }
my $linkpath=$path;
if ($form) {
$linkpath="javascript:$form.action='$path';$form.submit();";