Project

General

Profile

Actions

Bug #91427

closed

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

Added by Jan Kornblum almost 4 years ago. Updated almost 4 years ago.

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #90731: Mountpoint + Route Enhancer (Extbase Plugin) + Error "ID was outside the domain"Closed2020-03-11

Actions
Actions #1

Updated by Jan Kornblum almost 4 years ago

  • Related to Bug #90731: Mountpoint + Route Enhancer (Extbase Plugin) + Error "ID was outside the domain" added
Actions #2

Updated by Jan Kornblum almost 4 years ago

  • Related to deleted (Bug #90731: Mountpoint + Route Enhancer (Extbase Plugin) + Error "ID was outside the domain")
Actions #3

Updated by Jan Kornblum almost 4 years ago

  • Related to Bug #90731: Mountpoint + Route Enhancer (Extbase Plugin) + Error "ID was outside the domain" added
Actions #4

Updated by Jan Kornblum almost 4 years ago

I've just figured out that this is not a bug, but a misconfiguration of tca field "slug". When using mountpages accross sites / domains, a slug fields tca config must not be "eval=uniqueInSite", it has to be "eval=unique" (as documentation says). Sorry!!! Can anybody please close this issue.

Actions #5

Updated by Benni Mack almost 4 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF