Actions
Bug #97200
closedRouting appears not to work
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2022-03-17
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
With this setup, target controller and action never gets hit.
This TypoScript setup works well. All pages are loaded from here.
# PAGE # ********************** page=PAGE page{ typeNum=0 shortcutIcon=favicon.ico 10=USER 10{ userFunc=TYPO3\CMS\Extbase\Core\Bootstrap->run extensionName=Shop pluginName=Main } }
Routing configuration is as follows:
routeEnhancers:
Account:
type: Extbase
limitToPages:
- 1
extension: Shop
plugin: Account
routes:
- routePath: /a
_controller: 'Account::accountLogin'
- routePath: /a/r
_controller: 'Account::accountRegistration'
Plugin registration is as follows:
/**
* Plugins
*/
(static function(){
ExtensionUtility::configurePlugin('shop', 'Page', [PageController::class=>'main']);
ExtensionUtility::configurePlugin('shop', 'Account', [AccountController::class=>'accountLogin,accountRegistration']);
})();
Page 1 is the root page.
Naturally, one would expect that a url such as 127.0.0.1/a
would land in the accountLogin
action but is completely ignored. The AccountController
is not even touched. Page 1 is returned instead.
Is this a bug?
Actions