Actions
Bug #93727
closedExtbase Routing Enhancer with several routes doesn't work when routes use different controller
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2021-03-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint
Description
When you have several routes configured (like the default EXT:news config ) and all routes have the same controller set - everything is fine.
But if Georg would add something like
- routePath: '/' _controller: 'News::list' # ... - routePath: '/archive' _controller: 'NewsArchive::list'
The "/archive" url will never appear, because of different controller set (compared with defaultController: 'News::list'
configuration).
I was able to follow the bug, till \TYPO3\CMS\Extbase\Routing\ExtbasePluginEnhancer::verifyRequiredParameters
.
As workaround, I've created a showArchiveAction
in NewsController
, which just redirects to NewsArchiveController::list
and pointed my f:link.action
ViewHelpers to this new action.
Actions