#88836page type not respected under some circumstances
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&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&type=1533906435&cHash=0fe835841492c3b52e6090c6a7f6f310</loc> <lastmod>2019-07-24T09:30:35+02:00</lastmod> </sitemap>
Reviews 5
- 9.5 69116[BUGFIX] Keep unmapped ?type parameter when using PageTypeDecorator
- 10.4 69115[BUGFIX] Keep unmapped ?type parameter when using PageTypeDecorator
- main 68978[BUGFIX] Keep unmapped ?type parameter when using PageTypeDecorator
- 9.5 62811[BUGFIX] Allow resolving unmapped type GET parameters with PageTypeDecorator
- main 62383[BUGFIX] Allow resolving unmapped type GET parameters with PageTypeDecorator
Related issues 5
- Bug #86835Static route sitemap.xml is still not working on single-page tree
- Bug #87016Seo sitemap does not note routeEnhancer on extensions
- Bug #87104 PageTypeSuffix removes type parameter for non mapped type values
- Bug #87155Strange link building when having several page types configured
- Bug #87817PageLinkBuilder fails adding pagetype parameter, if routeEnhancers for PageTypeSuffix is defined