redirectToComingSoonEvent doesn't allow for aggregation of assets

Created on 22 July 2025, 12 days ago

Problem/Motivation

When either CSS or JS aggregation is enabled, Drupal tries to serve the aggregated files with their proper MIME types, but RedirectComingSoonSubscriber::redirectToComingSoonEvent() sends the Coming Soon page as text/html in their place, causing browser errors and loss of functionality.

Steps to reproduce

Enable coming soon mode without aggregation enabled, and clear cache. The page should load & function normally. Enable aggregation and clear cache. The CSS will not load, and any JavaScript (such as Antibot on permitted forms) will not work.

Proposed resolution

Exclude static files from redirection.

Remaining tasks

Make a MR.

πŸ› Bug report
Status

Active

Version

1.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BenStallings

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

Comments & Activities

Production build 0.71.5 2024