From e1642603eac05665d959c3d63ea8d1efbe9e431a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 15 Oct 2009 16:18:46 +0000 Subject: #216098 by kwinters, jgoldberg, drawk, sun: Make drupal_goto() use the same parameters as url(). --- 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 073e4c74a..87ef24c0a 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2092,7 +2092,7 @@ function comment_form_submit($form, &$form_state) { $query['page'] = $page; } // Redirect to the newly posted comment. - $redirect = array('node/' . $node->nid, $query, 'comment-' . $comment->cid); + $redirect = array('node/' . $node->nid, array('query' => $query, 'fragment' => 'comment-' . $comment->cid)); } else { watchdog('content', 'Comment: unauthorized comment submitted or comment submitted to a closed post %subject.', array('%subject' => $comment->subject), WATCHDOG_WARNING); -- cgit v1.2.3