diff options
Diffstat (limited to 'ikiwiki')
-rwxr-xr-x | ikiwiki | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -307,15 +307,14 @@ sub parentlinks ($) { #{{{ my $skip=1; foreach my $dir (reverse split("/", $page)) { if (! $skip) { + $path.="../"; unshift @ret, { url => "$path$dir.html", page => $dir }; } else { $skip=0; } - $path.="../"; } - $path=~s!../!!; - unshift @ret, { url => $path , page => $config{wikiname} }; + unshift @ret, { url => length $path ? $path : ".", page => $config{wikiname} }; return @ret; } #}}} |