Project

General

Profile

Actions

Bug #87016

closed

Seo sitemap does not note routeEnhancer on extensions

Added by Martin Weymayer over 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-11-27
Due date:
% Done:

0%

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

Description

config.yaml for site:

routes:
  -
    route: sitemap.xml
    type: uri
    source: 'https://www.xxx.at/?sitemap=pages&type=1533906435'
routeEnhancers:
  NewsPlugin:
    type: Extbase
    limitToPages: 84
    extension: News
    plugin: Pi1
    routes:
      - { routePath: '/list/{page}', _controller: 'News::list', _arguments: {'page': '@widget_0/currentPage'} }
      - { routePath: '/tag/{tag_name}', _controller: 'News::list', _arguments: {'tag_name': 'overwriteDemand/tags'}}
      - { routePath: '/news/{news_title}', _controller: 'News::detail', _arguments: {'news_title': 'news'} }
      - { routePath: '/archive/{year}/{month}', _controller: 'News::archive' }
    defaultController: 'News::list'
    defaults:
      page: '0'
    aspects:
      news_title:
        type: PersistedAliasMapper
        tableName: tx_news_domain_model_news
        routeFieldName: path_segment
    requirements:
      page: '\d+'

setup for seo sitemap:


plugin.tx_seo {
   config {
      xmlSitemap {
         sitemaps {
            news {
               provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
               config {
                  table = tx_news_domain_model_news
                  sortField = sorting
                  lastModifiedField = tstamp
                  #additionalWhere = AND (no_index = 0 OR no_follow = 0)
                  pid = 83
                  url {
                     pageId = 84
                     fieldToParameterMap {
                        uid = tx_news_pi1[news]
                     }
                     additionalGetParameters {
                        tx_extension_pi1.controller = News
                        tx_extension_pi1.action = detail
                     }
                     useCacheHash = 1
                  }
               }
            }
         }
      }
   }
}

But url's in sitemap are like: detail?tx_extension_pi1%5Baction%5D=detail&tx_extension_pi1%5Bcontroller%5D=News&tx_news_pi1%5Bnews%5D=1&cHash=30fc7d4bb0d4d32f09d4fe5d3be61728

But they should be like on page detail/news/have-a-nice-url


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 #87104: PageTypeSuffix removes type parameter for non mapped type valuesClosed2018-12-07

Actions
Related to TYPO3 Core - Bug #88836: page type not respected under some circumstancesClosed2019-07-24

Actions
Related to TYPO3 Core - Bug #87087: StaticRouteResolver ignores additional parametersClosed2018-12-05

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

Actions
Actions

Also available in: Atom PDF