Sehr geehrte Damen und Herren,
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/ContactForm.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/ContactForm.html
index 8a7b1c8d..cacd7aec 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/ContactForm.html
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/ContactForm.html
@@ -2,7 +2,7 @@
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
-
+
Anfrage E&P Reisen vom
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html
index 6a165088..b3247f1b 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html
@@ -2,7 +2,7 @@
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
-
+
Anfrage Gruppenhaus vom
diff --git a/public/typo3conf/ext/ep_theme/ext_localconf.php b/public/typo3conf/ext/ep_theme/ext_localconf.php
index 44f4696d..f0159045 100644
--- a/public/typo3conf/ext/ep_theme/ext_localconf.php
+++ b/public/typo3conf/ext/ep_theme/ext_localconf.php
@@ -23,6 +23,8 @@ $GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'] = 'EXT:ep_theme/Configu
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['ep-reisen'] = 'EXT:ep_theme/Configuration/RTE/Default.yaml';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['ep'] = ['EP\\EpTheme\\ViewHelpers'];
+$GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths'][700] = 'EXT:ep_theme/Resources/Private/Layouts/Email/';
+$GLOBALS['TYPO3_CONF_VARS']['MAIL']['templateRootPaths'][700] = 'EXT:ep_theme/Resources/Private/Templates/Email/';
$metaTagManagerRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry::class);
$metaTagManagerRegistry->registerManager(
diff --git a/public/typo3conf/ext/ep_track/Classes/Middleware/TrackingMiddleware.php b/public/typo3conf/ext/ep_track/Classes/Middleware/TrackingMiddleware.php
index 0ab3839f..b21c408d 100644
--- a/public/typo3conf/ext/ep_track/Classes/Middleware/TrackingMiddleware.php
+++ b/public/typo3conf/ext/ep_track/Classes/Middleware/TrackingMiddleware.php
@@ -35,6 +35,7 @@ use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
+use TYPO3\CMS\Core\Exception\SiteNotFoundException;
use TYPO3\CMS\Core\Http\NormalizedParams;
use TYPO3\CMS\Core\Http\RedirectResponse;
use TYPO3\CMS\Core\Site\SiteFinder;
@@ -107,9 +108,24 @@ class TrackingMiddleware implements MiddlewareInterface
$targetPage = $redirect['target_page_uid'];
$responseCode = $redirect['response_code'];
+ // Fallback for old t3:// links
+ if (1 === preg_match('/^t3:\/\/page\?uid=(\d+)$/', $targetPage, $matches)) {
+ $targetPage = $matches[1];
+ }
+
+ // Skip redirecting of non-numeric page uids like full urls
+ if (false === is_numeric($targetPage)) {
+ return null;
+ }
+
/** @var SiteFinder $siteFinder */
$siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
- $site = $siteFinder->getSiteByPageId($targetPage);
+ try {
+ $site = $siteFinder->getSiteByPageId((int)$targetPage);
+ }
+ catch (SiteNotFoundException $exception) {
+ return null;
+ }
$params = [];