From: Joey Hess Date: Sat, 23 Aug 2008 16:28:18 +0000 (-0400) Subject: fix links to inserted parent pages X-Git-Tag: 2.62~61 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=15a0a151bf08a2e4a12e6e3bbc6f047b14090979 fix links to inserted parent pages The parent page names had "/" prepended, which caused broken links. --- diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm index 4a89fbc35..429493b9e 100644 --- a/IkiWiki/Plugin/map.pm +++ b/IkiWiki/Plugin/map.pm @@ -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 .= "