Issue Bug Closed

#86602Ext: seo sitemap for records broken

Susanne Moog 10/09/18, 12:11 updated 05/07/19, 12:14

Description

The sitemap for records does not use the fieldToParameterMap fields data to generate links.

Steps to reproduce:

TypoScript example:

plugin.tx_seo {
  config {
    xmlSitemap {
      sitemaps {
        example {
          provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
          config {
            table = tx_example_domain_model_records
            sortField = sorting
            lastModifiedField = tstamp
            pid = 10
            url {
              pageId = 123
              fieldToParameterMap {
                uid = tx_example_detail[id]
              }

              useCacheHash = 1
            }
          }
        }
      }
    }
  }
}
  1. Add TS from above
  2. Call frontend sitemap with ?type=1533906435
  3. Go to the example sitemap
  4. Check links: In the resulting urls the “tx_example_detail[id]=<uid>“ parameter is missing.</uid>

Reviews 1