FlysystemServiceProvider::swapDumper Needs to Support file_additional_public_schemes

Created on 8 August 2023, 11 months ago
Updated 5 June 2024, 23 days ago

Problem/Motivation

The function swapDumper() in the class FlysystemServiceProvider() current returns and prevents swapping of Drupal\flysystem\Asset\CssOptimizer, when the scheme is "public". However, the Settings for "file_additional_public_schemes" should also be supposed, if a value for "file_additional_public_schemes" is set.

Steps to reproduce

Turn on CSS aggregation and broken url() attributes within the CSS will occur, since the url() should be loaded from the site's base URL< and not the flysystem URL (e.g., Amazon S3).

Proposed resolution

Apply patch to support "file_additional_public_schemes".

πŸ› Bug report
Status

Needs work

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Shefik

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

Comments & Activities

Production build 0.69.0 2024