Skip to content

Commit c981504

Browse files
authored
Merge pull request #60 from stigfaerch/master
[BUGFIX] Throws error on JumpUrl redirect in TYPO3 v12
2 parents d18dd34 + 85ad967 commit c981504

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Classes/Middleware/JumpUrlHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ protected function redirectToJumpUrl(string $jumpUrl, ServerRequestInterface $re
106106
*/
107107
protected function getPageTsConfig(ServerRequestInterface $request): array
108108
{
109+
if((new Typo3Version())->getMajorVersion() === 12) {
110+
return $this->getTypoScriptFrontendController()->getPagesTSconfig();
111+
}
109112
$pageInformation = $request->getAttribute('frontend.page.information');
110113
$id = $pageInformation->getId();
111114
$runtimeCache = GeneralUtility::makeInstance(CacheManager::class)->getCache('runtime');

0 commit comments

Comments
 (0)