The following two bugs can be observed when Talk is enabled and the comment form is set to "display on separate page."
Bug #1: The "Add new comment" link no longer includes the #comment-form anchor. For example, with Talk disabled, it links to:
http://example.com/comment/reply/122#comment-form
When Talk is enabled, the link is changed to this in all cases:
http://example.com/comment/reply/122
Bug #2: The "Add new comment" link is added to the teaser's $links. Drupal's default because is to exclude this link from the teaser's $links.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | talk_link_fixes.patch | 4.04 KB | todd nienkerk |
| #1 | talk_module_comment_form_errors.png | 48.62 KB | todd nienkerk |
Comments
Comment #1
todd nienkerk commentedFound another bug:
Bug #3: The following warnings appear when visiting the add comment page/form (when Talk is enabled and the comment form is set to "display on separate page"):
I have attached a screenshot.
Comment #2
todd nienkerk commentedThese bugs are related to #506670: Module removes "X new comments" link in node links.
Additionally, changing the hook_link()'s keys from
comment_*totalk_*fixes bug #3 above. I suspect a proper implementation of hook_link_alter() would solve most or all of these bugs.Comment #3
todd nienkerk commentedUPDATE: There's a very good reason for using hook_link() instead of hook_link_alter(). See my comment in a related issue for an explanation.
Comment #4
todd nienkerk commentedI've attached a patch that should resolve all three bugs above.
Comment #5
gregglesGreat, fixed! http://drupal.org/cvs?commit=237494
Thanks, Todd.