Change record status: 
Project: 
Introduced in branch: 
9.3.x
Introduced in version: 
9.3.0
Description: 

Links to files and images now use relative URLs by default.

The following places are affected:

Default theme implementation for a link to a file - file-link.html.twig / template_preprocess_file_link().

Formatters extending Drupal\file\Plugin\Field\FieldFormatter\BaseFieldFileFormatterBase with "Link this field to the file download URL" checked:

  • File MIME
  • File extension
  • File URI
  • File link

File URI formatter with "Display the file download URI" checked.

Image formatter and formatters extending Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter with "Link image to" set to "Linked to file":

  • Image
  • Thumbnail
  • URL to image

ViewsField "file" plugin with "Link this field to download the file" checked.

Impacts: 
Site builders, administrators, editors
Module developers
Themers