diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index 6902db6..0d36a58 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -1290,7 +1290,11 @@ function template_preprocess_file_link(&$variables) {
   $variables['attributes'] = new Attribute($variables['attributes']);
   $variables['attributes']->addClass($classes);

-  $variables['link'] = \Drupal::l($link_text, Url::fromUri($url, $options));
+  $variables['link'] = [
+    '#type' => 'link',
+    '#title' => $link_text,
+    '#url' => Url::fromUri($url, $options),
+  ];
 }

 /**
