When using multiple languages (with prefix in the url) the assets urls start with a prefix: /en/_flysystem/css/css_ETC.css
Because of this prefix, the FlysystemPathProcessor doesn't handle the url and the result is a 404 page instead of perfectly fine css.

I traced this issue to the priority of this processor. If set to 200, it runs after the language negotiation processor (\Drupal\language\HttpKernel\PathProcessorLanguage) which handles the prefix.

CommentFileSizeAuthor
#2 3118927-2.patch493 bytesspadxiii

Issue fork flysystem-3118927

Command icon 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

SpadXIII created an issue. See original summary.

spadxiii’s picture

Status: Active » Needs review
StatusFileSize
new493 bytes

Added a patch changing the priority of the service.

spadxiii’s picture

Version: 8.x-1.x-dev » 2.0.x-dev

just a quick note: patches still apply to 2.0

dmitriy.trt’s picture

Priority: Minor » Major
Status: Needs review » Reviewed & tested by the community

Not sure why priority was set to minor. It makes the module unusable on multilingual sites with language path prefix.

The patch fixes it for me. Thanks, @SpadXIII

lhridley made their first commit to this issue’s fork.

  • lhridley committed 85500e69 on 2.0.x
    Issue #3118927: FlysystemPathProcessor priority too high
    
lisa.rae’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.