Issue Bug Closed

#87841Sitemap generation doesn't take request language into account

Soren Malling 03/05/19, 08:52 updated 05/07/19, 12:10

Description

The sitemap.xml only takes content from the default language upon creation.

Case:

on domain.dk/sitemap.xml the sitemap is created with all content from the default language (in this case “Danish”)

on domain.net/sitemap.xml it was expected to contain only content from the langauge of that site. Instead it takes the content of the default language.

Issue has been identified with Richard Haeser

Sitemaps can be found www.meteko.dk/sitemap.xml and www.meteko.net/sitemap.xml

Site configuration

rootPageId: 1
base: 'https://meteko.dk'
baseVariants: {  }
languages:
  -
    title: Danish
    enabled: true
    languageId: '0'
    base: /
    typo3Language: da
    locale: da_DK.utf-8
    iso-639-1: da
    navigationTitle: ''
    hreflang: da-DK
    direction: ltr
    flag: dk
  -
    title: English
    enabled: true
    languageId: '2'
    base: 'https://meteko.net/'
    typo3Language: default
    locale: en_US.utf-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ltr
    fallbackType: strict
    flag: gb
errorHandling:
  -
    errorCode: '404'
    errorHandler: Page
    errorContentSource: '15'
routes: {  }
routeEnhancers:
  NewsPlugin:
    type: Extbase
    extension: News
    plugin: Pi1
    routes:
      -
        routePath: '/{news_title}'
        _controller: 'News::detail'
        _arguments:
          news_title: news
    defaultController: 'News::list'
    aspects:
      news_title:
        type: PersistedPatternMapper
        tableName: tx_news_domain_model_news
        routeFieldPattern: '^(?P<path_segment>.+)$'
        routeFieldResult: '{path_segment}'
  PageTypeSuffix:
    type: PageType
    map:
      sitemap.xml: 1533906435

Reviews 2