X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4cb6f48aff6645227dae5c7852d3122e4046142b..28c3e5482d7431b7554e6288bb2f9f55fbd274ed:/doc/bugs/permalink_not_set_for_comments.mdwn diff --git a/doc/bugs/permalink_not_set_for_comments.mdwn b/doc/bugs/permalink_not_set_for_comments.mdwn index 9ca8200b5..d41da9c35 100644 --- a/doc/bugs/permalink_not_set_for_comments.mdwn +++ b/doc/bugs/permalink_not_set_for_comments.mdwn @@ -14,3 +14,30 @@ permalink: `comments_pagename` is `comment_` so the above code needs a comment page to contain two underscores. I think that is the root of the bug. --[[Joey]] + +> Removed the trailing underscore in the regexp, so it should be fixed, +> though I have not tested the fix. Leaving this bug open until it's +> confirmed fixed. (I deployed it to branchable.) +> +> This will only fix the stored permalink metadata for a comment when its get +> preprocessed again, not immediately. That's ok for notifyemail, +> but other uses of permalink might need a wiki rebuild to get the bug fix. +> --[[Joey]] +> +>> I'm not sure that I see how the regexp was wrong? It's looking for, +>> for example, +>> +>> foo/comment_1_eaab671848ee6129f6fe9399474eeac0._comment +>> sccccccccdu +>> +>> where +>> +>> * *s* marks the literal `/` +>> * *cccc* marks `comments_pagename` +>> * *d* marks `\d+` (one or more digits) +>> * *u* marks the literal `_` +>> +>> The old regexp would have failed for the older format +>> `foo/comment_1._comment`, though. +>> +>> --[[smcv]]