Bug #87016
closedSeo sitemap does not note routeEnhancer on extensions
0%
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
Updated by Riccardo De Contardi about 6 years ago
- Category set to Site Handling, Site Sets & Routing
Updated by Pascal Querner over 5 years ago
Did anyone find a solution for this yet? Its still an issue in 9.5.8.
edit
This is not an issue for me in 9.5.8. My issue was that I had month,year and day in the URL and it was missing in the RecordProvider from ext:seo. This has been fixed here https://github.com/georgringer/news/commit/f5fd8def68505c65236fe4703f6b7d255f970a55
So I really dont' know why its notworking for you. Probably needs further feedback.
Updated by Tymoteusz Motylewski over 5 years ago
- Related to Bug #87817: PageLinkBuilder fails adding pagetype parameter, if routeEnhancers for PageTypeSuffix is defined added
Updated by Tymoteusz Motylewski over 5 years ago
- Related to Bug #87104: PageTypeSuffix removes type parameter for non mapped type values added
Updated by Tymoteusz Motylewski over 5 years ago
- Related to Bug #88836: page type not respected under some circumstances added
Updated by Tymoteusz Motylewski over 5 years ago
- Related to Bug #87087: StaticRouteResolver ignores additional parameters added
Updated by Tymoteusz Motylewski over 5 years ago
- Related to Bug #86835: Static route sitemap.xml is still not working on single-page tree added
Updated by Susanne Moog about 5 years ago
- Sprint Focus set to On Location Sprint
Updated by Georg Ringer almost 5 years ago
- Status changed from New to Closed
closed because of lack of feedback and it worked for me for all projects.