Project

General

Profile

Actions

Bug #106669

open

Route aspect fallback value gets removed if set to null

Added by Uwe Wiebach 11 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2025-05-08
Due date:
% Done:

0%

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

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...

No data to display

Actions

Also available in: Atom PDF