Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This code into the comment.tpl.php make a link to the parent comment:
<?php if ($comment->pid):
$parent_comment = db_result(db_query('SELECT subject FROM {comments} WHERE cid = %d AND status = %d', $comment->pid, COMMENT_PUBLISHED));
print '<a href="' . $node_url . '#comment-' . $comment->pid.'" title="' . $parent_comment .'" >' . t('Pre') . '</a>';
endif; ?>