]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/permalink_not_set_for_comments.mdwn
9ca8200b52508e9115bea163736ce72b1991dc0e
[git.ikiwiki.info.git] / doc / bugs / permalink_not_set_for_comments.mdwn
1 Changes to comments result in notifyemail sending emails with broken urls like 
2 "http://whatever/foo/comment_1_10a49d69282155c5c3e66dc58f64f956/"
4 notifyemail uses meta permalink if set, so it must not be set for comment
5 pages.
7 In the comments plugin, there's this code, which is supposed to set
8 permalink:
10         if ($params{page} =~ m/\/\Q$config{comments_pagename}\E\d+_/) {
11                 $pagestate{$page}{meta}{permalink} = urlto(IkiWiki::dirname($params{page})).
12                         "#".page_to_id($params{page});
13         }
15 `comments_pagename` is `comment_` so the above code needs a comment page to contain
16 two underscores. I think that is the root of the bug. --[[Joey]]