我正在为我的extbase扩展添加routeEnhancers。虽然网址似乎是正确创建的(/ checkout / shipping),但是由于空的chash参数,在跟随链接时出现页面未找到错误。我想知道如何将chash参数添加到路由增强器:
本机网址:checkout?tx_myext_checkout%5Baction%5D = shipping&tx_egoshop_checkout%5Bcontroller%5D = Checkout&cHash = 4b825ab195f7ab160f631fc7206f553f
routeEnhancer生成的网址:/ checkout / shipping
ext_localconf:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'myext',
'Checkout',
[
'Checkout' => 'address,shipping,payment,summary',
],
[
'Checkout' => 'address,shipping,payment,summary',
]
);
sites / config.yaml
routeEnhancers:
myext:
type: Extbase
extension: myext
plugin: Checkout
routes:
- { routePath: '/shipping', _controller: 'Checkout::shipping'}
defaultController: 'Checkout::address'