Broken CSS when password must be updated

Created on 29 March 2024, 8 months ago
Updated 12 September 2024, 2 months ago

Problem

With Drupal 10.2 Drupal has new routes for generated JS/CSS aggregations on demand. When the password must be reset, every request is force-redirecct to the user-account-edit page. With Drupal 10.2 this includes routes like
/files/css/css_1uiVMJ5jV7hO7W05Jtp9roHj0KvPc-8AuBnGYVLgeIM.css?delta=0&language=en&theme=gin&include=eJx9Um12gyAQvBDiGXoS34JrQkWWLmCanD6AYmL72j-uzMwO-4GmaULsR04erNT1JDS5iN8xgX0RDemscXMQdvQDjItx_QUdMticxNg74gWseaC4FMq4Dd5dQEezYnVo_GCcifWgGGHUnBZ1cKA1uo0N...

As a result, the CSS is completely broken.

πŸ› Bug report
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria fago Vienna

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

Comments & Activities

  • Issue created by @fago
  • πŸ‡«πŸ‡·France ericdsd France

    Hi i experienced the same issue.

  • Hello,

    It's seems that the problem was fixed here : https://www.drupal.org/project/password_policy/issues/2971743 πŸ› Error on aggregated css files for users forced to reset password RTBC but not released yet.

  • Assigned to Kristen Pol
  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    I plan to do the release so assigning this one to me to test after that's done to make sure it's working.

  • πŸ‡ΊπŸ‡ΈUnited States brian_nsu

    Kristen,

    Has this issue come up again lately? Just this morning, my Drupal 10.3 account password had expired and was greeted with the password change form. This form loaded with the problem described above ( and in the linked issue here: https://www.drupal.org/project/password_policy/issues/2971743 πŸ› Error on aggregated css files for users forced to reset password RTBC ) where the css is not rendering. That linked issue contains a file with patch code. I checked my site, and that patch code is indeed present. I found this ticket with more current responses, so wanted to reach out here.

    Appreciate and info you might provide.

    Brian

  • πŸ‡³πŸ‡ΏNew Zealand stewest Wellington

    Yeah looks like this issue has popped again in 4.0.3.

    The Password Expired screen has no styling, nor does the TFA screen.

    When I disable the css and js cache, I can see the styles, but then those are enabled, it's just a fully unstyled screen.

Production build 0.71.5 2024