The AJAX messages command should render messages using the twig template

Created on 27 June 2024, 6 months ago
Updated 29 June 2024, 6 months ago

Problem/Motivation

When messages are rendered via the AJAX messages command, we send the raw message content in an array, and then construct the messages HTML in JavaScript - this means that the HTML output is different depending whether messages are rendered via AJAX or not.

I think we potentially could change this so that within the AJAX messages command, we render messages via the theme template instead, and pass raw HTML in the AJAX response - and then this could be appended to any existing messages on the page.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
AjaxΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom catch

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

Comments & Activities

Production build 0.71.5 2024