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.

Comments

todd nienkerk’s picture

Title: Two bugs with "Add new comment" link when comment form is set to "display on separate page" » Three bugs with "Add new comment" link when comment form is set to "display on separate page"
StatusFileSize
new48.62 KB

Found 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"):

    * warning: Illegal offset type in isset or empty in /test-site/includes/path.inc on line 65.
    * warning: Illegal offset type in /test-site/includes/path.inc on line 70.
    * warning: preg_match() expects parameter 2 to be string, array given in /test-site/includes/bootstrap.inc on line 771.

I have attached a screenshot.

todd nienkerk’s picture

These bugs are related to #506670: Module removes "X new comments" link in node links.

Additionally, changing the hook_link()'s keys from comment_* to talk_* fixes bug #3 above. I suspect a proper implementation of hook_link_alter() would solve most or all of these bugs.

todd nienkerk’s picture

UPDATE: 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.

todd nienkerk’s picture

Status: Active » Needs review
StatusFileSize
new4.04 KB

I've attached a patch that should resolve all three bugs above.

greggles’s picture

Status: Needs review » Fixed

Great, fixed! http://drupal.org/cvs?commit=237494

Thanks, Todd.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.