From e733a53935062d33a4b70371f66e5a9b574786a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sat, 24 Oct 2026 13:54:57 +0200 Subject: [PATCH] fix: favicons and the schema.org logo use the published resource path They pointed to /typo3conf/ext/..., which only exists in the static docroots. Co-Authored-By: Claude Opus 5.5 --- .../DataProcessing/ProductRatingProcessor.php | 5 ++- .../TypoScript/Page/Main.typoscript | 45 ++++++++++--------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/packages/ep_theme/Classes/DataProcessing/ProductRatingProcessor.php b/packages/ep_theme/Classes/DataProcessing/ProductRatingProcessor.php index 30cb562..858dfc8 100644 --- a/packages/ep_theme/Classes/DataProcessing/ProductRatingProcessor.php +++ b/packages/ep_theme/Classes/DataProcessing/ProductRatingProcessor.php @@ -3,6 +3,7 @@ namespace EP\EpTheme\DataProcessing; use EP\EpProducts\Traits\DbConnectionTrait; +use TYPO3\CMS\Core\Utility\PathUtility; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface; @@ -54,9 +55,9 @@ class ProductRatingProcessor implements DataProcessorInterface 'areaServed' => 'DE', 'availableLanguage' => 'German' ], - 'logo' => 'https://www.ep-reisen.de/typo3conf/ext/ep_theme/Resources/Public/images/logo_wide.svg', + 'logo' => 'https://www.ep-reisen.de/' . PathUtility::getPublicResourceWebPath('EXT:ep_theme/Resources/Public/images/logo_wide.svg', false), 'priceRange' => '€', - 'image' => 'https://www.ep-reisen.de/typo3conf/ext/ep_theme/Resources/Public/images/logo_wide.svg', + 'image' => 'https://www.ep-reisen.de/' . PathUtility::getPublicResourceWebPath('EXT:ep_theme/Resources/Public/images/logo_wide.svg', false), 'aggregateRating' => [ '@type' => 'AggregateRating', 'ratingValue' => number_format($totalAverage/$ratedCount, 2), diff --git a/packages/ep_theme/Configuration/TypoScript/Page/Main.typoscript b/packages/ep_theme/Configuration/TypoScript/Page/Main.typoscript index 683e6f5..e78f894 100644 --- a/packages/ep_theme/Configuration/TypoScript/Page/Main.typoscript +++ b/packages/ep_theme/Configuration/TypoScript/Page/Main.typoscript @@ -42,29 +42,30 @@ page { headerData.333 = TEXT headerData.333.value ( - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + ) + headerData.333.insertData = 1 # disableCompression keeps ResourceCompressor's hands off the Encore entries: Webpack # already minifies them, and copying them to typo3temp/assets/compressed only replaces the