]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/template.pm
po: compute internal links from a slave page relative to its master page
[git.ikiwiki.info.git] / IkiWiki / Plugin / template.pm
index a2859b2a99864ddb0e9d33cea8106b46ffbc8775..c980df48f4a48dfa8100fefa341740a2028244eb 100644 (file)
@@ -33,7 +33,7 @@ sub preprocess (@) { #{{{
 
        my $template_file=$pagesources{$template_page};
        return sprintf(gettext("template %s not found"),
 
        my $template_file=$pagesources{$template_page};
        return sprintf(gettext("template %s not found"),
-               htmllink($params{page}, $params{destpage}, $template_page))
+               htmllink($params{page}, $params{destpage}, "/".$template_page))
                        unless defined $template_file;
 
        my $template;
                        unless defined $template_file;
 
        my $template;