diff --git a/post.php b/post.php index 2be025e..ad3f4d7 100644 --- a/post.php +++ b/post.php @@ -45,7 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') // Everything seems OK, add the new comment $post_hash_id = $_GET['hash_id']; - $db->new_comment ($comment, $post_hash_id, Session::get_userid()); + $comment_hash_id = $db->new_comment ($comment, $post_hash_id, Session::get_userid()); /* Send email notification for the new comment * $post_op is the post's original poster @@ -67,7 +67,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') } */ - header ('Location: ./' . $post_hash_id); + header ('Location: ./' . $post_hash_id . '#comment-' . $comment_hash_id); exit (); }