Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When CSS aggregation is turned on, the search.css stylesheet is not included on search404 results page.
Looks like the cause of this is that the code to include the stylesheet on the results page is still using the D6 api. Passing 'module' as the stylesheet type breaks the aggregation.
I'm attaching a patch that uses the default D7 function call. The original code turned off preprocessing of the stylesheet for aggregation but I'm not sure what the reasoning was for that. Obviously the maintainer is free to add that back in :)
Comment | File | Size | Author |
---|---|---|---|
#1 | search404-search-css-not-aggregated-1815404-1.patch | 772 bytes | jaytennier |
Comments
Comment #1
jaytennier CreditAttribution: jaytennier commentedAdding patch.
Comment #2
zyxware CreditAttribution: zyxware commentedThanks for the fix. This has been committed to the 7.x-1.x branch.