Issue Bug Rejected

#86659Sitemap with static routes produce xml error

Christian Hackl 10/15/18, 16:54 updated 10/29/19, 15:22

Description

Hello,

SiteManagement -> Static Routs -> sitemap.xml

I would like the sitemap to be accessible via domain.tld/sitemap.xml, so in the Static Routs I have “sitemap.xml” entered with the type “Page, File or URL” and in the input field: “t3://page?uid=1&type=1533906435” (UID 1 is the DomainRoot – GlobalIcon)

If I call the site now via domain.tld/sitemap.xml the error is that the XML is not correct because it doesn’t start at line 1 – but instead it starts at line 2 – therefore its invalid.

Because I call the sitemap over domain.tld/?type=1533906435 OR domain.tld?uid=1&type=1533906435 it works as it should. So the XML tag starts in line 1 …

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.