The link was broken if the inserted dir was not under the destpage
}
if ($depth > $indent) {
my $p="";
}
if ($depth > $indent) {
my $p="";
- $p.="/".shift(@bits) for 1..$indent+1;
+ $p.="/".shift(@bits) for 1..$indent;
$p=~s/^\///;
$map .= "<li>"
.htmllink($params{page}, $params{destpage},
$p=~s/^\///;
$map .= "<li>"
.htmllink($params{page}, $params{destpage},
- $p, class => "mapparent",
+ "/".$common_prefix."/".$p, class => "mapparent",
noimageinline => 1)
."\n";
$openli=1;
noimageinline => 1)
."\n";
$openli=1;