[BUGFIX] Fix login redirect_url for fresh logins 77/50677/3
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:09 +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/50677
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Classes/Controller/LoginController.php

index b747b97..e076bea 100644 (file)
@@ -218,6 +218,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