comments: Fix permalinks for comments using new conflict-free filenames.

master
Joey Hess 2010-01-04 20:51:40 -05:00
parent 5fdceb49b1
commit d78e8ee452
2 changed files with 2 additions and 1 deletions

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

1
debian/changelog vendored
View 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