diff --git a/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php b/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php index e3967b2..260eba2 100644 --- a/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php +++ b/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php @@ -230,14 +230,16 @@ public function buildForm(array $form, array &$form_state, $type = 'new') { $links = array(); $links['edit'] = array( 'title' => $this->t('edit'), - 'href' => $comment_uri['path'] . '/edit', + 'route_name' => 'comment.edit_page', + 'route_parameters' => array('comment' => $comment->id()), 'options' => $comment_uri['options'], 'query' => $destination, ); if ($this->moduleHandler->invoke('content_translation', 'translate_access', array($comment))) { $links['translate'] = array( 'title' => $this->t('translate'), - 'href' => $comment_uri['path'] . '/translations', + 'route_name' => 'content_translation.translation_overview_comment', + 'route_parameters' => array('comment' => $comment->id()), 'options' => $comment_uri['options'], 'query' => $destination, );