Actions
Bug #91427
closedMountpoint + Route Enhancer (Extbase Plugin Enhancer) + Error "The requested page does not exist"
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2020-05-18
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.4
Tags:
plugin enhancer, extbase, routing, mountpoint
Complexity:
Is Regression:
Sprint Focus:
Description
A page containing an extbase plugin (list + show action) is mounted into another domain.
Domain A (Site configuration) - Page AA - Page AB - Page ABA - Events (Extbase Plugin with "List" + "Show" Action) - Page ABB - Events (Extbase Plugin with "Archive" Action, pointing to single view on "Page ABA") Domain B (Site configuration) - Page BA - Page BC - Events (Mountpage: "Show the mounted page", Mountpid: "Page AB")
Coming from "archive" action a call to "show" action (located on a different pid!) causes an error "The requested page does not exist". The link is built like this:
<f:link.action pluginName="Event" controller="Event" action="show" arguments="{event: event}" pageUid="{differentPid}">
As soon as the route enhancer configuration is removed, everything works fine.
routeEnhancers: EventShow: type: Extbase extension: Example plugin: Event routes: - { routePath: '/{event_title}', _controller: 'Event::show', _arguments: {event_title: event} } defaultController: 'Event::list' aspects: event_title: type: PersistedAliasMapper tableName: tx_example_domain_model_event routeFieldName: slug
So there is still an error with the plugin enhancer / simple enhancer, in particular when the page id changes.
This issue follows https://forge.typo3.org/issues/90731, where a partially similar issue has already been fixed.
Actions