Project

General

Profile

Actions

Bug #102929

closed

Wrong extbase backend links build by f:uri.action

Added by Alex Kellner 3 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2024-01-25
Due date:
% Done:

0%

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

Description

Szenario: TYPO3 10.4.37, PHP 7.4

Installed Extension vhs with had this settings in Services.yaml in 7.0.1:

...

  TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder:
    autowire: true
    public: true

Then adding a new backend module in default extbase style with a link in the action template and enclose it with f:be.container like:

<f:be.container>
   <f:uri.action action="index" />
</f:be.container>

Now the URI is build wrong:

# Result
typo3/index.php?route=/module/lux/LuxGeneral&token=abc&tx__[action]=index&tx__[controller]=Default

This would be the expected result:

typo3/index.php?route=/module/lux/LuxGeneral&token=abc&tx_lux_lux_luxgeneral[action]=index&tx_lux_lux_luxgeneral[controller]=Default

So, for whatever reason pluginName and extensionName is missing.


Possible workarrounds for others:

# works
<f:uri.action action="index" controller="General" extensionName="Lux" pluginName="lux_luxgeneral" />

# works
<f:be.link route="lux_LuxGeneral">...</f:be.link>

Actions #1

Updated by Alex Kellner 3 months ago

It seems that adding shared:false does the trick in Services.yaml

Actions #2

Updated by Oliver Bartsch 3 months ago

  • Status changed from New to Needs Feedback

Hi Alex, so this issue is resolved for you?

Actions #3

Updated by Alex Kellner 2 months ago

Yes, and if this is a wanted behaviour, you can close this issue

Actions #4

Updated by Christian Kuhn about 2 months ago

  • Status changed from Needs Feedback to Closed

UriBuilder has been set shared:false in v11. Closing here.

Actions

Also available in: Atom PDF