Commit 030fd179 authored by Steven Wittens's avatar Steven Wittens

- Comment bug: anchor links should be specified using $fragment in url() and drupal_goto().

parent c27b62b1
......@@ -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')) {
......
......@@ -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')) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment