在我的流体模板中,有
{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中的路由中起作用。
请勿在代码中使用.html:0行。对我来说这有效
PageTypeSuffix:
type: PageType
default: /
index: ''
map:
/: 0
在基本语言部分中,检查基数是否等于/