diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php
index ae36aa0..a4937f7 100644
--- a/core/modules/node/node.api.php
+++ b/core/modules/node/node.api.php
@@ -492,8 +492,7 @@ function hook_node_links_alter(array &$links, NodeInterface $entity, array &$con
     '#links' => array(
       'node-report' => array(
         'title' => t('Report'),
-        'href' => "node/{$entity->id()}/report",
-        'query' => array('token' => \Drupal::getContainer()->get('csrf_token')->get("node/{$entity->id()}/report")),
+        'url' => Url::fromRoute('node_test.report', ['node' => $entity->id()], ['query' => ['token' => \Drupal::getContainer()->get('csrf_token')->get("node/{$entity->id()}/report")]]),
       ),
     ),
   );
