parentlinks: fixed links when po plugin is enabled
authorintrigeri <intrigeri@boum.org>
Wed, 12 Nov 2008 16:36:00 +0000 (17:36 +0100)
committerintrigeri <intrigeri@boum.org>
Wed, 12 Nov 2008 16:36:00 +0000 (17:36 +0100)
(and usedirs is disabled)

Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/parentlinks.pm

index a8b3641e922a43e51a5d295ce64c6ad042890726..9095dabdaf176726b6a514e9edb605c8d06eb4e3 100644 (file)
@@ -36,7 +36,7 @@ sub parentlinks ($) { #{{{
                $depth=$i;
                $height=($pagedepth - $depth);
                push @ret, {
                $depth=$i;
                $height=($pagedepth - $depth);
                push @ret, {
-                       url => urlto($path, $page),
+                       url => urlto(bestlink($page, $path), $page),
                        page => $title,
                        depth => $depth,
                        height => $height,
                        page => $title,
                        depth => $depth,
                        height => $height,