diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2008-12-22 19:02:03 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2008-12-22 19:02:03 -0500 |
commit | aa603888d221e2e80a95496b902acf4174d8cd88 (patch) | |
tree | 8dcb5dc4d031af35fae95ba39ece3be779a667b4 | |
parent | 62c0ba3619056cfb67edf426f7f5db59d6d56bb9 (diff) | |
parent | 05bb65fc687b357a5265f0c378a694b5b02d376d (diff) | |
download | ikiwiki-aa603888d221e2e80a95496b902acf4174d8cd88.tar ikiwiki-aa603888d221e2e80a95496b902acf4174d8cd88.tar.gz |
Merge commit 'smcv/recentchanges'
-rw-r--r-- | IkiWiki/Plugin/recentchanges.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index 12577e9ef..7071596e6 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -95,6 +95,15 @@ sub cgi ($) { IkiWiki::loadindex(); + # If the page is internal (like a comment), see if it has a + # permalink. Comments do. + if (IkiWiki::isinternal($page) && + defined $pagestate{$page}{meta}{permalink}) { + IkiWiki::redirect($cgi, + $pagestate{$page}{meta}{permalink}); + exit; + } + my $link=bestlink("", $page); if (! length $link) { print "Content-type: text/html\n\n"; |