Add Feature to rewrite file urls

Created on 5 February 2025, 25 days ago

Problem/Motivation

A common use case in decoupled scenarious is to have a custom domain to access files from the frontend.

It would be a helpful addition to allow a per-consumer rewrite of the public and/or private files.

Proposed resolution

Internally Drupal uses public:// and private:// URIs which are later turned into absolute URLs via the FileUrlGenerator service.

By utilizing the file_url_alter() the URIs can be manually converted to absolute URLs.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇦🇹Austria chfoidl Salzburg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024