summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-25 13:46:12 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-25 13:46:12 -0400
commit3f5ba52ee0b3466585458fac3ba20795c0ac9ad3 (patch)
treec9a5861a9c427bf73bbcc147c8cfeeced0478d10 /IkiWiki
parent9e55aa7f174810119cee77e47df5979c40490662 (diff)
recentchanges: Fix redirects to non-page files.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/recentchanges.pm7
1 files changed, 6 insertions, 1 deletions
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 ($) { #{{{
"</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;