fix permalink to comments

This commit was sponsored by Thomas May.
master
Joey Hess 2019-01-21 11:57:23 -04:00
parent beaebab04b
commit 5d44bf4b5c
No known key found for this signature in database
GPG Key ID: DB12DB0FF05F8F38
2 changed files with 2 additions and 1 deletions

View File

@ -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

View 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});
}