Actions
Bug #87016
closedSeo sitemap does not note routeEnhancer on extensions
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Site Handling, Site Sets & 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
Actions