Issue Bug Closed

#91427Mountpoint + Route Enhancer (Extbase Plugin Enhancer) + Error "The requested page does not exist"

Jan Kornblum 05/18/20, 11:28 updated 06/17/20, 18:35

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.