Fix permalinks to recentchanges items and comments, broken by last release.
[ikiwiki.git] / IkiWiki / Plugin / recentchanges.pm
index 3081ac1316efd501b95d1ba650d4ac321957b5cd..92083a7ad6ad5c9bf33743489b9ac2a143366f11 100644 (file)
@@ -178,7 +178,6 @@ sub store ($$$) {
                        else {
                                $_->{link} = pagetitle($_->{page});
                        }
-                       $_->{baseurl}=IkiWiki::baseurl(undef) if length $config{url};
 
                        $_;
                } @{$change->{pages}}
@@ -226,7 +225,7 @@ sub store ($$$) {
                wikiname => $config{wikiname},
        );
        
-       $template->param(permalink => urlto($config{recentchangespage}, undef)."#change-".titlepage($change->{rev}))
+       $template->param(permalink => urlto($config{recentchangespage}, undef, 1)."#change-".titlepage($change->{rev}))
                if exists $config{url};
        
        IkiWiki::run_hooks(pagetemplate => sub {