[BUGFIX] Use page uid instead of alias for cHash calculation
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Controller / TypoScriptFrontendController.php
index ac30f0b..f9d8650 100644 (file)
@@ -2238,10 +2238,8 @@ class TypoScriptFrontendController
         }
         $GET = GeneralUtility::_GET();
         if ($this->cHash && is_array($GET)) {
-            if (!isset($GET['id'])) {
-                // id not in $_GET -> home page -> use already determined id
-                $GET['id'] = $this->id;
-            }
+            // Make sure we use the page uid and not the page alias
+            $GET['id'] = $this->id;
             $this->cHash_array = $this->cacheHash->getRelevantParameters(GeneralUtility::implodeArrayForUrl('', $GET));
             $cHash_calc = $this->cacheHash->calculateCacheHash($this->cHash_array);
             if ($cHash_calc != $this->cHash) {