mirror of
https://github.com/werkraum-media/abtest.git
synced 2024-11-13 07:16:11 +01:00
Fix for root pages
This commit is contained in:
parent
6da8beb30b
commit
df4c021cc7
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue