diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2008-12-19 17:33:40 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2008-12-19 17:33:40 -0500 |
commit | 301733ba13f8fdaf53df0a6058f92d305507a97f (patch) | |
tree | a65f6b6ee4e0aeec9777f97fcad8a1bad5149c63 /IkiWiki | |
parent | 0b002b79b7241ea87ce3489b75a34116c32630e6 (diff) |
fix comment permalink to always point to comment parent page
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 2 |
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}; } |