TYPO3 hreflang /带有扩展参数的规范网址构建

时间:2019-07-09 18:27:18

标签: typo3 url-routing typo3-9.x canonical-link hreflang

我实际上正在查看hreflang / canonical url的构建,而扩展名参数有问题。 实际上,我在浏览器https://www.myprojectlocal/en/path/to/detailpage/domain_model_title.html中调用了seo网址 规范/ hreflang网址如下所示: https://www.myprojectlocal/en/path/to/detailpage.html?tx_extension_plugin%5Buid%5D=1&cHash=8de88a9b96600cbff24aaba7ea8176ce

我发现,如果我在生成器的代码中添加“&tx_extension_plugin [controller] = Detail”作为AdditionalParams,我将获得正确的URL。有人可以给我提示如何通过配置工作吗? 我的routeEnhancer看起来像:

routeEnhancers:
  tx_extension_plugin_detail:
    type: Extbase
    limitToPages: [391]
    extension: Extension
    plugin: Plugin
    routes:
      - routePath: '{title}'
        _controller: 'Detail'
        _arguments:
          'title': 'domainModel'
    defaultController: 'Detail'
    aspects:
      title:
        type: PersistedAliasMapper
        tableName: 'tx_extension_domain_model_sampleobject'
        routeFieldName: 'slug'
        routeValuePrefix: '/'

0 个答案:

没有答案