Project

General

Profile

Actions

Bug #91298

open

StaticValueMapper messes up route generation

Added by Anonymous over 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2020-05-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Given configuration:

tx_awesomeextension_bestplugin[filter][foo]=1

routeEnhancers:
    Sample:
        type: Extbase
        extension: AwesomeExtension
        plugin: BestPlugin
        routes:
            -   routePath: '/foo/{foo}'
                _arguments:
                    foo: 'filter/foo'
                _controller: 'Foo::bar'
        defaultController: 'Foo::bar'
        aspects:
            foo:
                type: StaticValueMapper
                map:
                    -: ''
                    1: 1

Expected URL: http://great.ddev.site/foo/1

Observed behaviour: http://great.ddev.site/foo/-?tx_awesomeextension_bestplugin[filter][foo]=1

(skipped cHash for examples)

Actions

Also available in: Atom PDF