From 030fd1798a20e15d7275e5742462c2af822a5f63 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 6 Jan 2006 01:14:17 +0000 Subject: - Comment bug: anchor links should be specified using $fragment in url() and drupal_goto(). --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 9ae46087e..70031f3db 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1409,7 +1409,7 @@ function comment_form_submit($form_id, $form_values) { if ($op == t('Post comment')) { drupal_set_title(t('Post comment')); if ($cid = comment_save($form_values)) { - drupal_goto("node/$nid#comment-$cid"); + drupal_goto("node/$nid", NULL, "comment-$cid"); } } else if ($_POST['op'] == t('Preview comment')) { -- cgit v1.2.3