comments: Fix permalinks for comments using new conflict-free filenames.
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 5 Jan 2010 01:51:40 +0000 (20:51 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 5 Jan 2010 01:51:40 +0000 (20:51 -0500)
IkiWiki/Plugin/comments.pm
debian/changelog

index 6340fc2cb466bd925208d8bf21462ff5f12b4466..5586cca522e5cb2e43422d99c267235197985c5d 100644 (file)
@@ -224,7 +224,7 @@ sub preprocess {
                $pagestate{$page}{meta}{title} = $params{subject};
        }
 
-       if ($params{page} =~ m/\/(\Q$config{comments_pagename}\E\d+)$/) {
+       if ($params{page} =~ m/\/\Q$config{comments_pagename}\E\d+_/) {
                $pagestate{$page}{meta}{permalink} = urlto(IkiWiki::dirname($params{page}), undef, 1).
                        "#".page_to_id($params{page});
        }
index aa4f1ac3c94f142ea0c8b3d159a1e7c0999dee10..f36580d26abb4f601ce857aa9262e97cde45bc2d 100644 (file)
@@ -4,6 +4,7 @@ ikiwiki (3.20100104) UNRELEASED; urgency=low
     (Sjoerd)
   * signinedit: Auto-disable the plugin when all authentication methods
     are disabled.
+  * comments: Fix permalinks for comments using new conflict-free filenames.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 04 Jan 2010 12:53:24 -0500