my %params=@_;
my $template=$params{template};
my $page=$params{page};
- if ($config{rcs} && $page ne $config{recentchangespage} &&
+
+ if (defined $config{recentchangespage} && $config{rcs} &&
+ $page ne $config{recentchangespage} &&
$template->query(name => "recentchangesurl")) {
$template->param(recentchangesurl => urlto($config{recentchangespage}, $page));
$template->param(have_actions => 1);
"</p>");
}
else {
- IkiWiki::redirect($cgi, $config{url}."/".htmlpage($link));
+ IkiWiki::redirect($cgi, $config{url}.IkiWiki::beautify_urlpath("/".htmlpage($link)));
}
exit;