Project

General

Profile

Actions

Bug #91880

closed

Routing for actions without parameters broken

Added by Robert Vock almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2020-07-28
Due date:
% Done:

100%

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

Description

I have the following Routing Configuration:

  RegistrationPlugin:
    type: Extbase
    extension: SfRegister
    plugin: Form
    defaultController: 'FeuserCreate::form'
    routes:
      -
        routePath: '/'
        _controller: 'FeuserCreate::form'
      -
        routePath: '/speichern'
        _controller: 'FeuserCreate::save'
      -
        routePath: '/bestaetigen/{user}/{hash}'
        _controller: 'FeuserCreate::confirm'
        _arguments:
          user: user
          hash: hash

Until TYPO3 9.5.19 this generated pretty URLs for the save action:
/registrierung/speichern

With TYPO3 9.5.20 Update the controller and action parameters are not encoded anymore:
/registrierung?tx_sfregister_form%5Baction%5D=save&tx_sfregister_form%5Bcontroller%5D=FeuserCreate&cHash=d0b4e36e4798e4ce992891ce20b160f9

It appears this bug has been introduced with #90924:
ExtbasePluginEnhancer.php:149

If I change the condition, the URL works fine:

if ($diff = array_diff_key($variables, $mergedParams)) {


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #90924: Maximum route parameters always appendedClosed2020-04-01

Actions
Actions

Also available in: Atom PDF