Wrong Content-type header for RSS Feed

Created on 6 March 2024, 4 months ago
Updated 6 June 2024, 21 days ago

Problem/Motivation

I have created a Views page with Advanced RSS feed as format and added basic configuration to show content as RSS feed. When I go to the View page url, I see that it is not treated as RSS feed by the browser (Chrome shows RSS type of styling, FF just downloads the file). Instead the page just shows like normal website. If I open the developer tools and check the page headers on reload, I see that "Content-type" -header is set as "text/html; charset=UTF-8"

Proposed resolution

Correct the "Content-type" -header, ie. in core issue https://www.drupal.org/project/drupal/issues/3272985 🐛 RSS Feed header reverts to text/html when cached Fixed it is set in the render-function of the style plugin.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇮Finland thatguy

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

Comments & Activities

Production build 0.69.0 2024