diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 67c135b34c29b65e84272bbc58ef559c922e4bf0..a382bb5574ee3605328fc92eaf034e478fa555a7 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1739,7 +1739,9 @@ function theme_comment_flat_collapsed($comment, $node) {
  * @ingroup themeable
  */
 function theme_comment_flat_expanded($comment, $node) {
-  return theme('comment_view', $comment, $node, module_invoke_all('link', 'comment', $comment, 0));
+  $links = module_invoke_all('link', 'comment', $comment, 0);
+  drupal_alter('link', $links, $node);
+  return theme('comment_view', $comment, $node, $links);
 }
 
 /**
@@ -1765,7 +1767,9 @@ function theme_comment_thread_collapsed($comment, $node) {
  * @ingroup themeable
  */
 function theme_comment_thread_expanded($comment, $node) {
-  return theme('comment_view', $comment, $node, module_invoke_all('link', 'comment', $comment, 0));
+  $links = module_invoke_all('link', 'comment', $comment, 0);
+  drupal_alter('link', $links, $node);
+  return theme('comment_view', $comment, $node, $links);
 }
 
 /**