After upgrading my Drupal installation to 10.1.x CSS/JS aggregation no longer seemed to work. After some research it appears Anonymous Redirect is instructing a redirect for the sites/default/files/js/* and sites/default/files/css/* paths.
Unsure, but might be related to the changes in #2888767: Asset aggregation deprecations and additions, hook_js_alter()/hook_css_alter() changes?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | anonmyous_redirect-assets_no_redirect-3444326-5.patch | 6.16 KB | rp7 |
Issue fork anonymous_redirect-3444326
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 #3
rp7 commentedMR opened + patch attached.
Comment #4
mstrelan commentedLeft some nits and a question about compatibility. Test coverage would be good if possible.
Comment #5
rp7 commentedMade a few proposed changes + tried to get the tests green.
A test for an actual asset generation path should still be added, though.
Comment #6
mstrelan commentedNeeds a rebase
Comment #7
mstrelan commentedRebased and started looking at test coverage, but one glaring issue is that the asset generation directory by default is the same as the public file system. This might be ok though, since it's usually served directly by apache anyway, except for the image styles directory.
Comment #8
fmb commentedWe have been using this fix for a few months, and it works well.
Comment #9
jimmynash commentedThis fix has been working for us as well.
Comment #11
mstrelan commented