Commit b302d030 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Reinitialize TSFE for redirecting non-accessible pages

parent 4ab35d03
...@@ -232,6 +232,16 @@ class RoutingService { ...@@ -232,6 +232,16 @@ class RoutingService {
} }
} }
// force pageid
if ($controller->getRequestedId() !== $pageId) {
$controller = GeneralUtility::makeInstance(
TypoScriptFrontendController::class,
$TYPO3_CONF_VARS,
$pageId,
0
);
}
if (!($controller->fe_user instanceof FrontendUserAuthentication)) { if (!($controller->fe_user instanceof FrontendUserAuthentication)) {
$controller->initFEuser(); $controller->initFEuser();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment