diff options
author | Joey Hess <joeyh@joeyh.name> | 2019-01-21 11:57:23 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2019-01-21 11:57:23 -0400 |
commit | 5d44bf4b5c97220daec4066b7d3c758fc3f136c2 (patch) | |
tree | ea0f6a528d00c555dd3a996186637a1a8d7d2aa1 /IkiWiki | |
parent | beaebab04bfa87b18286ecc1e8aef4ae87615e57 (diff) | |
download | ikiwiki-5d44bf4b5c97220daec4066b7d3c758fc3f136c2.tar ikiwiki-5d44bf4b5c97220daec4066b7d3c758fc3f136c2.tar.gz |
fix permalink to comments
This commit was sponsored by Thomas May.
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 46e1b268f..edf5183a6 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -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}); } |