8 – Problem using Font Awesome for custom text in a view

I have a custom entity (contract) created in a custom module (amap) by a group of BaseFieldDefinition.
Here is the corresponding form:
enter the description of the image here

One of the fields is a file defined in this way.

$ fields['file1'] = BaseFieldDefinition :: create (& # 39; file & # 39;)
-> setLabel (t (& # 39; File source & # 39;))
-> setDescription (t (& # 39; Source file (can be modified) & # 39;))
-> setSettings ([
    'target_type' => 'file',
    'file_extensions' => 'doc docx odt pages',
    'file_directory' => 'contrats',
  ])
-> setDefaultValue (& # 39; & # 39;)
-> setDisplayOptions (& # 39; see & # 39 ;, [
    'label' => 'above',
    'type' => 'string',
    'weight' => $weight,
  ])
-> setDisplayOptions (& # 39; form & # 39 ;, [
    'type' => 'string_textfield',
    'weight' => $weight,
  ])
-> setDisplayConfigurable (& # 39; form & # 39 ;, TRUE)
-> setDisplayConfigurable (& # 39; view & # 39 ;, TRUE)
-> setReadOnly (TRUE);

I have a view about a custom entity that shows some fields in table mode:
enter the description of the image here

The actions are defined using & # 39; Custom Text & # 39 ;.
For example, the first one is:
enter the description of the image here

I use Font Awesome Icons in these personalized texts.
I have a problem with the last one:
If the field & # 39; file1 & # 39; it does not exist (as in the second row), it shows the icon of the exclamation triangle without a link, which is fine.
But if & # 39; file1 & # 39; it exists (as in the first row), it shows a download icon with a link to the file that is OK AND the same icon without a link that it should not be!

Any ideas of what is wrong?

By the way, if I replace the Font Awesome icons with a simple character in this way

{% if file1__target_id%}
A
{% else%}
second
{% will end if%}

It works as expected (a & # 39; A & # 39; with a link and a & # 39; B & # 39; B & # 39; no link):
enter the description of the image here