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 #1

Updated by Martin Weymayer over 5 years ago

  • Description updated (diff)
Actions #2

Updated by Josef Glatz over 5 years ago

  • Description updated (diff)
Actions #3

Updated by Riccardo De Contardi about 5 years ago

  • Category set to Link Handling, Site Handling & Routing
Actions #4

Updated by Pascal Querner over 4 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.

Actions #5

Updated by Tymoteusz Motylewski over 4 years ago

  • Related to Bug #87817: PageLinkBuilder fails adding pagetype parameter, if routeEnhancers for PageTypeSuffix is defined added
Actions #6

Updated by Tymoteusz Motylewski over 4 years ago

  • Related to Bug #87104: PageTypeSuffix removes type parameter for non mapped type values added
Actions #7

Updated by Tymoteusz Motylewski over 4 years ago

  • Related to Bug #88836: page type not respected under some circumstances added
Actions #8

Updated by Tymoteusz Motylewski over 4 years ago

  • Related to Bug #87087: StaticRouteResolver ignores additional parameters added
Actions #9

Updated by Tymoteusz Motylewski over 4 years ago

  • Related to Bug #86835: Static route sitemap.xml is still not working on single-page tree added
Actions #10

Updated by Susanne Moog over 4 years ago

  • Sprint Focus set to On Location Sprint
Actions #11

Updated by Georg Ringer about 4 years ago

  • Status changed from New to Closed

closed because of lack of feedback and it worked for me for all projects.

Actions

Also available in: Atom PDF