From f0393523c80d637fb8f5e4f0d6c3d64a18487e90 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 3 Sep 2006 19:54:44 +0000 Subject: * Fix another destpage issue in the inline directive. Closes: #385512 again. --- IkiWiki/Plugin/inline.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') 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); -- cgit v1.2.3