fix links to inserted parent pages

The parent page names had "/" prepended, which caused broken links.
master
Joey Hess 2008-08-23 12:28:18 -04:00
parent 7071d0b586
commit 15a0a151bf
1 changed files with 4 additions and 4 deletions

View File

@ -106,22 +106,22 @@ sub preprocess (@) { #{{{
}
}
my @bits=split("/", $item);
my $p="";
$p.="/".shift(@bits) for 1..$indent;
while ($depth > $indent) {
$indent++;
if ($indent > 1) {
$map .= "<ul>\n";
}
if ($depth > $indent) {
$dummy=1;
$p.="/".shift(@bits);
my $p="";
$p.="/".shift(@bits) for 1..$indent+1;
$p=~s/^\///;
$map .= "<li>"
.htmllink($params{page}, $params{destpage},
$p, class => "mapparent",
noimageinline => 1)
."\n";
$openli=1;
$dummy=1;
}
else {
$openli=0;