Project

General

Profile

Actions

Bug #88836

closed

page type not respected under some circumstances

Added by Chris Müller over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-07-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

In the site configuration I have the following configuration:

...
routeEnhancers:
  Suffix:
    type: PageType
    default: /
    index: ''
    map:
      /: 0
      yoast-snippetpreview.json: 1480321830
...

When I now generate the XML index sitemap (with type 1533906435) I don't get the type in the sitemap URLs, so the link shows the home page instead of the pages XML sitemap:

<sitemap>
  <loc>https://website.ddev.local:8443/de/?sitemap=pages&amp;cHash=0fe835841492c3b52e6090c6a7f6f310</loc>
  <lastmod>2019-07-24T09:30:35+02:00</lastmod>
</sitemap>

But if I remove the routeEnhances.Suffix part, the type is respected:

<sitemap>
  <loc>https://website.ddev.local:8443/de/?sitemap=pages&amp;type=1533906435&amp;cHash=0fe835841492c3b52e6090c6a7f6f310</loc>
  <lastmod>2019-07-24T09:30:35+02:00</lastmod>
</sitemap>

Related issues 5 (1 open4 closed)

Related to TYPO3 Core - Bug #87817: PageLinkBuilder fails adding pagetype parameter, if routeEnhancers for PageTypeSuffix is definedClosed2019-03-01

Actions
Related to TYPO3 Core - Bug #87016: Seo sitemap does not note routeEnhancer on extensionsClosed2018-11-27

Actions
Related to TYPO3 Core - Bug #86835: Static route sitemap.xml is still not working on single-page treeNew2018-11-02

Actions
Related to TYPO3 Core - Bug #87155: Strange link building when having several page types configuredClosed2018-12-13

Actions
Related to TYPO3 Core - Bug #87104: PageTypeSuffix removes type parameter for non mapped type valuesClosed2018-12-07

Actions
Actions

Also available in: Atom PDF