Skip to content
Snippets Groups Projects
Commit 030fd179 authored by Steven Wittens's avatar Steven Wittens
Browse files

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

parent c27b62b1
No related branches found
No related tags found
No related merge requests found
......@@ -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')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment