--- TypoScriptFrontendController.php 2013-10-11 11:58:34.845868314 +0200 +++ TypoScriptFrontendController-patched.php 2013-10-11 12:00:36.167867254 +0200 @@ -748,6 +748,11 @@ protected $cacheHash; /** + * Original requested id + */ + protected $requestedId; + + /** * Class constructor * Takes a number of GET/POST input variable as arguments and stores them internally. * The processing of these variables goes on later in this class. @@ -1342,7 +1347,7 @@ $GLOBALS['TT']->pull(); $GLOBALS['TT']->push('fetch_the_id rootLine/', ''); // We store the originally requested id - $requestedId = $this->id; + $this->requestedId = $this->id; $this->getPageAndRootlineWithDomain($this->domainStartPage); $GLOBALS['TT']->pull(); if ($this->pageNotFound && $this->TYPO3_CONF_VARS['FE']['pageNotFound_handling']) {