protected function initializeAction()
{
Utility::checkAndPerformRequiredUpdates();
$this->currentPageId = (int) \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('id');
$this->databaseConnection = $GLOBALS['TYPO3_DB'];
// Fix pagers
$arguments = GeneralUtility::_GPmerged('tx_realurl_web_realurlrealurl');
if ($arguments && is_array($arguments)) {
foreach ($arguments as $argumentKey => $argumentValue) {
if ($argumentValue) {
if (!in_array($argumentKey, $this->excludedArgments)) {
GeneralUtility::_GETset($argumentValue, 'tx_realurl_web_realurlrealurl|' . $argumentKey);
} else {
GeneralUtility::_GETset('', 'tx_realurl_web_realurlrealurl|' . $argumentKey);
}
}
}
} else {
$this->forwardToLastModule();
}
parent::initializeAction();
}