From: Joey Hess
Date: Thu, 25 Sep 2008 17:46:12 +0000 (-0400)
Subject: recentchanges: Fix redirects to non-page files.
X-Git-Tag: 2.66~93
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f5ba52ee0b3466585458fac3ba20795c0ac9ad3;p=ikiwiki.git
recentchanges: Fix redirects to non-page files.
---
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm
index 7bc482974..37e45a05a 100644
--- a/IkiWiki/Plugin/recentchanges.pm
+++ b/IkiWiki/Plugin/recentchanges.pm
@@ -103,7 +103,12 @@ sub cgi ($) { #{{{
"
");
}
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;
diff --git a/debian/changelog b/debian/changelog
index e9adfcac0..f3f30dc21 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ikiwiki (2.66) UNRELEASED; urgency=low
+
+ * recentchanges: Fix redirects to non-page files.
+
+ -- Joey Hess 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,