]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix permalink to comments
authorJoey Hess <joeyh@joeyh.name>
Mon, 21 Jan 2019 15:57:23 +0000 (11:57 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 21 Jan 2019 15:57:23 +0000 (11:57 -0400)
This commit was sponsored by Thomas May.

CHANGELOG
IkiWiki/Plugin/comments.pm

index cb7a7a038a77bd43e78176a04c5c7831a8966ebc..93b57465cbc62fffc15fd483039f9a232ec1735b 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -11,6 +11,7 @@ ikiwiki (3.20180312) UNRELEASED; urgency=medium
   * aggregate: Fix aggregation of posts without a title.
     Thanks, Alexandre Oliva
   * poll: Added postlink and posttrail options for better multi-page polls.
+  * Fix permalink to comments.
 
  -- Simon McVittie <smcv@debian.org>  Wed, 16 May 2018 13:09:27 +0100
 
index 46e1b268f1c2f503890ef17194728935112faef4..edf5183a65afeff7ce1804ba69d3a3600e77ecd3 100644 (file)
@@ -265,7 +265,7 @@ sub preprocess {
                $pagestate{$page}{meta}{title} = decode_entities($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})).
                        "#".page_to_id($params{page});
        }