Messages sent with redirect responses cannot be server-rendered

Created on 11 August 2024, 8 months ago

Problem

Unlike traditional Drupal lupus CE renderer sends drupal-messages with redirect responses. This is a feature, that was introduced to help with static site generation: When the redirect target is pre-generated, this is the only way the drupal-message will end-up in the frontend.

This approach is great for SSG and fine with SSR on sub-sequent client-side rendered API requests. However, for server-rendered requests the server cannot properly return a redirect + set the message (without doing workarounds like setting a cookie and reading it later)

Proposed resolution

Support both, sending the message with next requests like traditional Drupal OR sending the message the redirect response. Make it configurable. New installs should fit the SSR behaviour, for BC existing installs should get it configured to send the message with the redirect.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.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

Production build 0.71.5 2024