X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/fdaab0fdddcb332cfd9386bef385eb167ba51cb1..44c8d863398565860b2f94bbaa28f057a5199565:/IkiWiki/Plugin/inline.pm diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 8ceaa95e0..70d5be235 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -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);