summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/map.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm
index 429493b9e..44fda73ca 100644
--- a/IkiWiki/Plugin/map.pm
+++ b/IkiWiki/Plugin/map.pm
@@ -113,11 +113,11 @@ sub preprocess (@) { #{{{
}
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, class => "mapparent",
+ "/".$common_prefix."/".$p, class => "mapparent",
noimageinline => 1)
."\n";
$openli=1;