diff --git a/typo3/sysext/fluid/Classes/View/TemplatePaths.php b/typo3/sysext/fluid/Classes/View/TemplatePaths.php index c60de99d4f26..3c9aa6a2ee01 100644 --- a/typo3/sysext/fluid/Classes/View/TemplatePaths.php +++ b/typo3/sysext/fluid/Classes/View/TemplatePaths.php @@ -100,7 +100,9 @@ protected function getContextSpecificViewConfiguration(string $extensionKey): ar foreach ($paths as $name => $defaultPaths) { if (!empty($configuredPaths[$name])) { - $paths[$name] = array_merge($defaultPaths, ArrayUtility::sortArrayWithIntegerKeys((array)$configuredPaths[$name])); + $configured = ArrayUtility::sortArrayWithIntegerKeys((array)$configuredPaths[$name]); + // prepend default paths which are not found in configured paths, as fallbacks + $paths[$name] = array_merge(array_diff($defaultPaths, $configured), $configured); } }