Bug #19062
closedif redirect_url / login error
0%
Description
if a redirect_url is set (via $_GET), one is redirected to the redirect_url upon wrong authorization. i would aspect a call to the login page with an error msg.
if addtionally a error redirect pid is set (to the login form), one is redirected to the login form, but no error is shown, just the login form in its inital form (welcome) and the redirect url (upon succesful login) is lost.
(issue imported from #M8903)
Files
Updated by Thomas Breuss over 15 years ago
I had the same problem with fe_login version 1.0.0.
The problem comes from method tx_felogin_pi1::processRedirect(). If redirect options are set to "defined by GET/POST-Vars" the return value will be empty.
So on line 97 of class tx_felogin_pi1 the member var $this->redirectUrl will be set with an empty value.
My solution to fix this was:
On line 293 of class.tx_felogin_pi.php i have replaced
$markerArray['###REDIRECT_URL###'] = $this->redirectUrl;
with
$markerArray['###REDIRECT_URL###'] = t3lib_div::_GP('redirect_url');
Updated by Steffen Kamper over 15 years ago
This solution is not the right one.
I attached a fix so the GP-redirecturl is passed for this cases, also after login error.