]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
commas
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index 8ceaa95e09f0f491401248716dc365ddd73a41b5..70d5be2353665b574752d3b23109150e0ece9340 100644 (file)
@@ -99,7 +99,7 @@ sub preprocess_inline (@) { #{{{
                        # Don't use htmllink because this way the title is separate
                        # and can be overridden by other plugins.
                        my $link=htmlpage(bestlink($params{page}, $page));
-                       $link=abs2rel($link, dirname($params{page}));
+                       $link=abs2rel($link, dirname($params{destpage}));
                        $template->param(pageurl => $link);
                        $template->param(title => pagetitle(basename($page)));
                        $template->param(content => $content);