Project

General

Profile

Actions

Bug #86659

closed

Sitemap with static routes produce xml error

Added by Christian Hackl about 6 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2018-10-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
sitemap.xml, static routes
Complexity:
Is Regression:
Sprint Focus:

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 ...


Files

Bildschirmfoto 2018-10-15 um 16.51.15.jpg (30.2 KB) Bildschirmfoto 2018-10-15 um 16.51.15.jpg xml error Christian Hackl, 2018-10-15 16:52
Bildschirmfoto 2018-10-15 um 16.52.13.jpg (18.8 KB) Bildschirmfoto 2018-10-15 um 16.52.13.jpg here you can see the blank line 1 Christian Hackl, 2018-10-15 16:52
Actions

Also available in: Atom PDF