getTypoScriptFrontendController(); if (!empty($tsfe->config['config']['disablePageExternalUrl'])) { return false; } $this->externalUrl = $tsfe->sys_page->getExtURL($tsfe->page); if (empty($this->externalUrl)) { return false; } return true; } /** * Redirects the user to the detected external URL. */ public function handle(): ResponseInterface { return new RedirectResponse($this->externalUrl, 303); } /** * @return TypoScriptFrontendController */ protected function getTypoScriptFrontendController(): TypoScriptFrontendController { return $GLOBALS['TSFE']; } }