]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/parentlinks.pm
email auth plugin now works through email address entry
[git.ikiwiki.info.git] / IkiWiki / Plugin / parentlinks.pm
index bbd2c5752f58ac4aa94dc932ac4345a5226266a7..9f16dd08296a5743084fc390ddde362e3a6a5fe9 100644 (file)
@@ -27,7 +27,7 @@ sub parentlinks ($) {
        if (! length $page) {
                # dynamic page
                return {
-                       url => $config{url},
+                       url => IkiWiki::baseurl(undef),
                        page => $config{wikiname},
                };
        }
@@ -65,7 +65,7 @@ sub pagetemplate (@) {
         my $template=$params{template};
 
        if ($template->query(name => "parentlinks") ||
-          $template->query(name => "has_parentlinks")) {
+           $template->query(name => "has_parentlinks")) {
                my @links=parentlinks($params{page});
                $template->param(parentlinks => \@links);
                $template->param(has_parentlinks => (@links > 0));