[+BUGFIX] Extbase (MVC): Fixed redirects in Backend. Resolves #4970.
authorSebastian Kurfürst <sebastian@typo3.org>
Mon, 12 Oct 2009 06:30:06 +0000 (06:30 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Mon, 12 Oct 2009 06:30:06 +0000 (06:30 +0000)
typo3/sysext/extbase/Classes/MVC/Controller/AbstractController.php

index a5364ad..20e6fbd 100755 (executable)
@@ -305,9 +305,7 @@ abstract class Tx_Extbase_MVC_Controller_AbstractController implements Tx_Extbas
                if (!$this->request instanceof Tx_Extbase_MVC_Web_Request) throw new Tx_Extbase_MVC_Exception_UnsupportedRequestType('redirect() only supports web requests.', 1220539734);
 
                $baseUri = $this->request->getBaseURI();
-               if (TYPO3_MODE === 'BE') {
-                       $baseUri .= TYPO3_mainDir;
-               }
+
                $uri = $baseUri . (string)$uri;
                $escapedUri = htmlentities($uri, ENT_QUOTES, 'utf-8');
                $this->response->setContent('<html><head><meta http-equiv="refresh" content="' . intval($delay) . ';url=' . $escapedUri . '"/></head></html>');