[D10.3] redirect responses are returned as text/html

Created on 15 July 2024, about 2 months ago
Updated 31 July 2024, about 1 month ago

Problem/Motivation

The CE Renderer's customized JSON redirect responses come back as content-type "text/html" in Drupal 10.3, not "application/json".

Reason : Symfony has started to explicitly set the content-type header in redirect responses. (And we are copying that header into the CustomElementsJsonResponse.)

Steps to reproduce

Go to e.g. /ce-api/node/1/edit (which at the moment always responds with a redirect to itself, in JSON format?) Observe content-type of response.

Proposed resolution

See MR.

🐛 Bug report
Status

Fixed

Version

2.3

Component

Code

Created by

🇳🇱Netherlands roderik Amsterdam,NL / Budapest,HU

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024