#89390Slug generation: Fallback fields seems not to work
Description
TYPO3 9.5.9
Target: We want to use pages.nav_title for slug generation of pages and if nav_title is empty, title should be used instead.
Luckily there is a good documentation that describes this scenario exactly:
https://docs.typo3.org/m/typo3/reference-tca/9.5/en-us/ColumnsConfig/Type/Slug.html#generatoroptions
Problem: If pages.nav_title and pages.title is filled and the slug will be regenerated, values of both fields are used to fill the slug.
If I follow the recommendation, this TCA should work as described:
$GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['fields'] = ['nav_title', 'title'];
The complete TCA for pages.slug:
The problem: