]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/comments.pm
fix comment permalink to always point to comment parent page
[git.ikiwiki.info.git] / IkiWiki / Plugin / comments.pm
index 50c048fee2d757aaf3cebe09c3a8a037e15a9c6f..c50729a34cfe431cbac062a57c63174991db4ec5 100644 (file)
@@ -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};
        }