Actions
Bug #91880
closedRouting for actions without parameters broken
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & 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)) {
Actions