Project

General

Profile

Actions

Bug #97200

closed

Routing appears not to work

Added by John Miller over 2 years ago. Updated over 2 years ago.

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 #1

Updated by John Miller over 2 years ago

Using version 11.5.8

This setup worked well with a previous version. So I potted it to this new version and... nothing.

Actions #2

Updated by John Miller over 2 years ago

Apparently not a bug.

Just found out, TypoScript for the AccountController was not loaded. Sorry for the inconvenience.

Actions #3

Updated by Oliver Hader over 2 years ago

  • Status changed from New to Closed
  • Complexity deleted (nightmare)

Thanks for the feedback. Works as expected (just verified as well).

Actions

Also available in: Atom PDF