diff --git a/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php b/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php index 2592ece..481a0d5 100644 --- a/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php +++ b/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php @@ -76,18 +76,24 @@ public static function create(ContainerInterface $container) { * The current request object containing the search string. * * @return array|Symfony\Component\HttpFoundation\RedirectResponse - * An associative array containing: - * - An array for rendering the node or parent comment. - * - comment_node: If the comment is a reply to the node. - * - comment_parent: If the comment is a reply to another comment. - * - comment_form: The comment form as a renderable array. + * One of the following: + * - An associative array containing: + * - An array for rendering the node or parent comment. + * - comment_node: If the comment is a reply to the node. + * - comment_parent: If the comment is a reply to another comment. + * - comment_form: The comment form as a renderable array. + * - A redirect response to current node: + * - If user is not authorized to post comments. + * - If parent comment doesn't belong to current node. + * - If user is not authorized to view comments. + * - If current node comments are disable. */ public function getReply(NodeInterface $node, $pid, Request $request) { + $uri = $node->uri(); // Set the breadcrumb trail. - drupal_set_breadcrumb(array(l(t('Home'), NULL), l($node->label(), 'node/' . $node->id()))); + drupal_set_breadcrumb(array(l(t('Home'), NULL), l($node->label(), $uri['path']))); $op = $request->request->get('op'); $build = array(); - $uri = $node->uri(); // The user is previewing a comment prior to submitting it. if ($op == t('Preview')) {