You can solve this via preprocess.
/themes/mytheme/mytheme.theme
/**
* Implements hook_preprocess_HOOK().
*/
function mytheme_preprocess_file_link(&$variables) {
$variables['link']['#url']->setOption('attributes', ['target' => '_none']);
}
You can solve this via preprocess.
/themes/mytheme/mytheme.theme
/**
* Implements hook_preprocess_HOOK().
*/
function mytheme_preprocess_file_link(&$variables) {
$variables['link']['#url']->setOption('attributes', ['target' => '_none']);
}