The "Add a new comment" link is currently only shown when on full node view and the comment form is on a separate page. However, it'd be helpful to show this link regardless of where the comment form is located. On a normal forum situation, there may by 50+ replies, pushing the comment form far down the page, requiring the user to scroll down a long way before they can get to the node comment form.

This patch makes this link always shown even if the comment form is on the same page (using a named anchor). This same change is made in both Advanced Forum and in Node Comment module, it'd be convenient to include the same change in core.

Note it's important to apply #371649: Link to "Add new comment" disappears once first comment is entered to be able to adequately test this in Garland.

CommentFileSizeAuthor
comment_add_new_link.patch1.73 KBquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

Status: Needs review » Reviewed & tested by the community

Not having this link means users tend to hit 'reply' on comments themselves as a shortcut, which means you end up with unwanted/incorrect threading as a result. It's a good change, only removes one if statement. RTBC.

quicksketch’s picture

Issue tags: +comments, +DruBB

Adding DruBB tag, this will reduce code in Advanced Forum which adds this link if it's missing, since it's an expected thing to have a link to the form no matter what.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

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