X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FCommentLinkBuilder.php;h=60be27082ab3989cb392cc03a13eb451b1b3f1a9;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=c7cbc18d376b32381eb55dc7a311e403bc1c2141;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/comment/src/CommentLinkBuilder.php b/web/core/modules/comment/src/CommentLinkBuilder.php index c7cbc18d3..60be27082 100644 --- a/web/core/modules/comment/src/CommentLinkBuilder.php +++ b/web/core/modules/comment/src/CommentLinkBuilder.php @@ -107,7 +107,7 @@ class CommentLinkBuilder implements CommentLinkBuilderInterface { 'title' => $this->formatPlural($entity->get($field_name)->comment_count, '1 comment', '@count comments'), 'attributes' => ['title' => $this->t('Jump to the first comment.')], 'fragment' => 'comments', - 'url' => $entity->urlInfo(), + 'url' => $entity->toUrl(), ]; if ($this->moduleHandler->moduleExists('history')) { $links['comment-new-comments'] = [ @@ -141,7 +141,7 @@ class CommentLinkBuilder implements CommentLinkBuilderInterface { ]); } else { - $links['comment-add'] += ['url' => $entity->urlInfo()]; + $links['comment-add'] += ['url' => $entity->toUrl()]; } } elseif ($this->currentUser->isAnonymous()) { @@ -174,7 +174,7 @@ class CommentLinkBuilder implements CommentLinkBuilderInterface { ]); } else { - $links['comment-add']['url'] = $entity->urlInfo(); + $links['comment-add']['url'] = $entity->toUrl(); } } }