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".
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3379832-3.patch | 799 bytes | shefik |
| #2 | 3379832.patch | 903 bytes | shefik |
Issue fork flysystem-3379832
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
shefik commentedModify the file /modules/contrib/flysystem/src/FlysystemServiceProvider.php to apply the patch.
Comment #3
shefik commentedComment #4
shefik commentedComment #5
lisa.rae commentedComment #6
shefik commentedPatch is updated to apply correctly.
Comment #7
lisa.rae commentedComment #10
lisa.rae commentedComment #12
lisa.rae commentedComment #14
lisa.rae commentedComment #15
lisa.rae commentedComment #18
lisa.rae commentedPatch ported and merged into 2.2.x branch. Closing issue as fixed.