TYPO3 9-错误的主页网址

问题描述 投票:0回答:1

在我的流体模板中,有

{f:uri.page(pageUid:'{uid}')}

除主页外,其他方法均正常工作-其结果类似于mydomain.com/.html的url

下面是基本的路由配置:

rootPageId: 1
routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: .html
    index: ''
    map:
      .html: 0
      sitemap.xml: 1533906435`

我希望指向主页的链接只是mydomain.com(而不是mydomain.com/index.html,但我不能使其在TYPO3 9中的路由中起作用。

typo3-9.x
1个回答
0
投票

请勿在代码中使用.html:0行。对我来说这有效

  PageTypeSuffix:
   type: PageType
   default: /
   index: ''
   map:
    /: 0

在基本语言部分中,检查基数是否等于/

© www.soinside.com 2019 - 2024. All rights reserved.