Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
62c0ba3
)
Merge commit 'smcv/recentchanges'
author
Joey Hess
<joey@gnu.kitenet.net>
Tue, 23 Dec 2008 00:02:03 +0000
(19:02 -0500)
committer
Joey Hess
<joey@gnu.kitenet.net>
Tue, 23 Dec 2008 00:02:03 +0000
(19:02 -0500)
IkiWiki/Plugin/recentchanges.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/recentchanges.pm
b/IkiWiki/Plugin/recentchanges.pm
index 12577e9efc9f56e1748a160a6cdab5b768540501..7071596e6603586d6d2682aef0c4d37f56b25788 100644
(file)
--- 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";