summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2008-12-19 17:33:40 -0500
committerJoey Hess <joey@gnu.kitenet.net>2008-12-19 17:33:40 -0500
commit301733ba13f8fdaf53df0a6058f92d305507a97f (patch)
treea65f6b6ee4e0aeec9777f97fcad8a1bad5149c63 /IkiWiki
parent0b002b79b7241ea87ce3489b75a34116c32630e6 (diff)
fix comment permalink to always point to comment parent page
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/comments.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 50c048fee..c50729a34 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -194,7 +194,7 @@ sub preprocess {
}
if ($params{page} =~ m/\/(\Q$config{comments_pagename}\E\d+)$/) {
- $pagestate{$page}{meta}{permalink} = urlto($params{destpage}, undef, 1).
+ $pagestate{$page}{meta}{permalink} = urlto(IkiWiki::dirname($params{page}), undef, 1).
"#".$params{page};
}