recentchanges: Fix redirects to non-page files.

master
Joey Hess 2008-09-25 13:46:12 -04:00
parent 9e55aa7f17
commit 3f5ba52ee0
2 changed files with 12 additions and 1 deletions

View File

@ -103,7 +103,12 @@ sub cgi ($) { #{{{
"</p>");
}
else {
IkiWiki::redirect($cgi, $config{url}.IkiWiki::beautify_urlpath("/".htmlpage($link)));
if (defined pagetype($link)) {
IkiWiki::redirect($cgi, $config{url}.IkiWiki::beautify_urlpath("/".htmlpage($link)));
}
else {
IkiWiki::redirect($cgi, $config{url}.IkiWiki::beautify_urlpath("/".$link));
}
}
exit;

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ikiwiki (2.66) UNRELEASED; urgency=low
* recentchanges: Fix redirects to non-page files.
-- Joey Hess <joeyh@debian.org> Thu, 25 Sep 2008 13:45:55 -0400
ikiwiki (2.65) unstable; urgency=low
* aggregate: Expire excess or old items on the same pass that adds them,