WordPress.org

Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#51324 new defect (bug)

sitemap.xml and sitemap-xml headers return html as content type

Reported by: superpoincare Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5
Component: Sitemaps Keywords:
Focuses: Cc:

Description

If WordPress is installed at https://www.example.com, then the addresses https://www.example.com/sitemap.xml and https://www.example.com/sitemap-xml send "text/html; charset=UTF-8" as the Content-Type header.

Of course these urls get redirected to wp-sitemap.xml which sends the correct header "application/xml; charset=UTF-8". Just wondering if the page before redirection should also.

Change History (2)

#1 @swissspidy
6 weeks ago

  • Component changed from General to Canonical

#2 @knutsp
6 weeks ago

  • Component changed from Canonical to Sitemaps
  • Type changed from enhancement to defect (bug)
  • Version changed from 5.5.1 to 5.5

Hard to see this as an enhancement in Canonical component. I's a bug in the Sitemap component, not?

Note: See TracTickets for help on using tickets.