diff --git a/core/modules/comment/src/Controller/CommentController.php b/core/modules/comment/src/Controller/CommentController.php index bf3ae46cb48..24662318ef9 100644 --- a/core/modules/comment/src/Controller/CommentController.php +++ b/core/modules/comment/src/Controller/CommentController.php @@ -219,7 +219,6 @@ class CommentController extends ControllerBase { */ public function getReplyForm(Request $request, EntityInterface $entity, $field_name, $pid = NULL) { $account = $this->currentUser(); - $uri = $entity->urlInfo()->setAbsolute(); $build = array(); // The user is not just previewing a comment.