From df4c021cc766fccd65b4af96f1582f805c61172c Mon Sep 17 00:00:00 2001 From: Sven Wappler Date: Sun, 24 Dec 2017 00:28:36 +0100 Subject: [PATCH] Fix for root pages --- Classes/Helper.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Classes/Helper.php b/Classes/Helper.php index 54cc8cf..53020be 100644 --- a/Classes/Helper.php +++ b/Classes/Helper.php @@ -96,8 +96,6 @@ class Helper $tsFeController->page['content_from_pid'] = $targetPageId; } - //$pObj->page['no_cache'] = true; - $_GET['abtest'] = $cookieValue; $this->makeCacheHash($tsFeController); @@ -131,6 +129,11 @@ class Helper { $GET = GeneralUtility::_GET(); + /* Fix for root pages */ + if (!isset($GET['id'])) { + $GET['id'] = $tsFeController->id; + } + /** @var CacheHashCalculator $cacheHash */ $cacheHash = GeneralUtility::makeInstance(CacheHashCalculator::class);