[BUGFIX] Fix login redirect_url for fresh logins 84/50684/2
authorBenjamin Franzke <bfr@qbus.de>
Wed, 16 Nov 2016 13:30:23 +0000 (14:30 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 16 Nov 2016 21:22:35 +0000 (22:22 +0100)
The new BE Login form API in commit 9099b64c missed to pass
$_GET['redirect_url'] into the login template, which caused
redirect_url to work only for already logged-in sessions.

Change-Id: I13081f303047e93863d8ce820d8e4fade0cea89b
Resolves: #78719
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/50684
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Classes/Controller/LoginController.php

index fd14af3..a581514 100644 (file)
@@ -224,6 +224,7 @@ class LoginController
                 'typo3' => $this->getUriForFileName('EXT:backend/Resources/Public/Images/typo3_orange.svg'),
             ],
             'copyright' => BackendUtility::TYPO3_copyRightNotice(),
+            'redirectUrl' => $this->redirectUrl,
             'loginNewsItems' => $this->getSystemNews(),
             'loginProviderIdentifier' => $this->loginProviderIdentifier,
             'loginProviders' => $this->loginProviders