diff --git a/core/modules/comment/src/Controller/CommentController.php b/core/modules/comment/src/Controller/CommentController.php index 399c6ab..b2846be 100644 --- a/core/modules/comment/src/Controller/CommentController.php +++ b/core/modules/comment/src/Controller/CommentController.php @@ -132,7 +132,7 @@ public function commentPermalink(Request $request, CommentInterface $comment) { $redirect_request->query->set('page', $page); // Carry over the session to the subrequest. if ($session = $request->getSession()) { - $sub_request->setSession($session); + $redirect_request->setSession($session); } // @todo: Convert the pager to use the request object. $request->query->set('page', $page);