Project

General

Profile

Actions

Bug #86588

closed

RouteEnhancer on rootPage raise a PageNotFoundException exception

Added by Torsten Fink over 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-10-07
Due date:
% Done:

0%

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

Description

I added a routeEnhancer with a PersistedAliasMapper aspect for a plugin.

routeEnhancers:
    Foowebsite:
        type: Extbase
        limitToPages: [6]
        extension: Foowebsite
        plugin: Pi1
        routes:
        - routePath: '/{country_slug}'
          _controller: 'Country::show'
          _arguments: {'country_slug': 'country'}
        defaultController: 'Country::list'
        aspects:
            country_slug:
                type: PersistedAliasMapper
                tableName: 'tx_foowebsite_domain_model_country'
                routeFieldName: 'slug'

If i use this route on the root Website(is_siteroot=1) i get a PageNotFoundExeption, on a sub page all works fine.

  • example.com/aegypten -> PageNotFoundException
  • example.com/default-title/aegypten -> works fine
Actions

Also available in: Atom PDF