fix: #3626466 Create missing image styles before the router

Issue: https://www.drupal.org/project/drimage_improved/issues/3626466

Runs the Drimage request subscriber at priority 33, before the router (32), so a style that does not exist yet is created instead of 404ing.

Verified on 1.0.13 locally and deployed on a live Varbase 11 multisite: the first request for a new or near-size style returns 200, and 107 previously failing image URLs now load.

DrimageSubscriberBeforeRouterTest sends the first request for a missing style through the full HTTP kernel: 200 with the fix, 404 without it.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading
Loading