Issue Bug New Quiet

#106669Route aspect fallback value gets removed if set to null

Uwe Wiebach 05/08/25, 09:45 updated 11/06/26, 10:04

Description

If you have added a route enhancer with an aspect that has a fallbackValue of null to your site configuration, it will be removed when you save the configuration in the backend later.

So, e.g. this:

routeEnhancers:
  Address:
    type: Extbase
    extension: TtAddress
    plugin: ListView
    routes:
      -
        routePath: '/{address-title}'
        _controller: 'Address::show'
        _arguments:
          address-title: address
    defaultController: 'Address::list'
    aspects:
      address-title:
        type: PersistedAliasMapper
        tableName: tt_address
        routeFieldName: slug
        fallbackValue: null

becomes to:

routeEnhancers:
  Address:
    type: Extbase
    extension: TtAddress
    plugin: ListView
    routes:
      -
        routePath: '/{address-title}'
        _controller: 'Address::show'
        _arguments:
          address-title: address
    defaultController: 'Address::list'
    aspects:
      address-title:
        type: PersistedAliasMapper
        tableName: tt_address
        routeFieldName: slug

And this of course leads to a completely different error handling…

Reviews 0

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

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Route aspect fallback value gets removed if set to null Resolves: #106669 Releases: main

History 1