Issue Bug Closed

#86588RouteEnhancer on rootPage raise a PageNotFoundException exception

Torsten Fink 10/07/18, 12:35 updated 10/24/20, 22:47

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

Reviews 0

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