Steps to replicate on drupal.org as an authenticated user:

1) go to piece of content that allows comments
2) fill out comments fields ==> preview
3) in the top preview, there will be two links to "parent" and "reply"
--jpg attached

the "parent" link points to: http://drupal.org/comment/reply#comment-
the "reply" link points to itself: http://drupal.org/comment/reply/26423

CommentFileSizeAuthor
comment-preview.jpg16.97 KBsamo

Comments

samo’s picture

on my install I am changing this line in comment_preview:

$output .= theme('comment_preview', $comment, theme('links', module_invoke_all('link', 'comment', $comment, 1)));

to

$output .= theme('comment_preview', $comment);
moshe weitzman’s picture

Status: Active » Fixed
Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Uwe Hermann’s picture

Version: » 4.6.0
Status: Fixed » Closed (fixed)
lisa’s picture

Version: 4.6.0 » 4.6.6
Status: Closed (fixed) » Active

I don't think this bug is fixed. I am using Drupal 4.6.6 and have the same problem as described by samo.

I go to a piece of content that allows comments - for example forum, or story. I fill out the comments fields and click preview. In the top preview, I see links to parent - edit - reply

Parent link points to ?q=comment/reply#comment- which takes me back to the home page.

Edit link points to ?q=comment/edit/ and clicking it results in the following error messages:

warning: Missing argument 1 for comment_edit() in mysite/modules/comment.module on line 357.

warning: Cannot modify header information - headers already sent by (output started at mysite/includes/common.inc:384) in mysite/includes/common.inc on line 99.

Reply link points to ?q=comment/reply/2 and takes me to a page where I can write a new reply to the first reply which was only previewed, never saved.

It seems that these links should not be visible or at least not active in the preview window.

Can anyone help?

mjolley@buy-hot.com’s picture

Title: Comment preview has bad links for "parent" and "reply" » Possible related problem

This is the only comment.module issue I've found that might relate to what I and some others have found. Maybe you guys know whether this is related. There's a problem in comment.module that affects replies to nodes but not replies to other comments. I've posted all my findings here: http://drupal.org/node/63554

stevenpatz’s picture

Title: Possible related problem » Comment preview has bad links for "parent" and "reply"

Possible related problem is not at ALL descriptive.

mjolley@buy-hot.com’s picture

Sorry, I didn't realize I was changing the title of the whole thing, just my post.

magico’s picture

Version: 4.6.6 » 4.6.9

This can be changed in a theme by overriding the comment.tpl.php.
Anyway, I think it's still a bug that should also be checked against HEAD.

stevenpatz’s picture

Version: 4.6.9 » 5.5
Status: Active » Fixed

I don't see this behavior in my 5.5 install. marking as fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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