Bug #87912

XML sitemap with localised news records does not respect language

Added by Chris Müller 6 days ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2019-03-14
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I am using the news aextension with localised records (e.g. English as default language and German as second language).

The different languages are available via

https://example.org/en/
https://example.org/de/

Now I defined an XML sitemap:

plugin.tx_seo {
    config {
        xmlSitemap {
            sitemaps {
                tx_news {
                    provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
                    config {
                        table = tx_news_domain_model_news
                        sortField = uid
                        lastModifiedField = tstamp
                        additionalWhere =
                        pid = {$site.plugin.tx_news.storagePageId}
                        url {
                            pageId = {$site.plugin.tx_news.singlePageId}
                            fieldToParameterMap {
                                uid = tx_news_pi1[news]
                            }

                            additionalGetParameters {
                                tx_news_pi1.controller = News
                                tx_news_pi1.action = detail
                            }

                            useCacheHash = 1
                        }
                    }
                }
            }
        }
    }
}

When I call the generated XML sitemap for English, I got the URLs:
- https://example.org/en/article/english-text/
- https://example.org/en/article/german-text/

And for German:
- https://example.org/de/article/german-text/
- https://example.org/de/article/german-text/
with different modification dates

Both are the same news item, but localised.


Related issues

Related to TYPO3 Core - Bug #87841: Sitemap generation doesn't take request language into account Accepted 2019-03-05

History

#1 Updated by Soren Malling 6 days ago

  • Related to Bug #87841: Sitemap generation doesn't take request language into account added

Also available in: Atom PDF