Issue Bug Closed

#97200Routing appears not to work

John Miller 03/17/22, 14:56 updated 03/21/22, 11:07

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?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.