Bug #19220
closedfelogin redirect to frontpage doesn't work
0%
Description
When redirecting to frontpage $redirect_url=''; and redirect doesn't work.
Line 346:
$redirect_url = $this->pi_getPageLink(intval($this->conf['redirectPageLogin']),array(),true);
Dont know how to fix it.
Thanks!
(issue imported from #M9175)
Updated by Steffen Kamper over 16 years ago
please read manual for proper configuration
Updated by Vlatko Šurlan over 14 years ago
Henrik is right. There is in fact a bug in the code. It's located in class.tx_felogin_pi1.php on lines 657-661:
// remove empty values
if (count($redirect_url)) {
return t3lib_div::trimExplode(',', implode(',', $redirect_url), TRUE);
} else {
return array();
}
However the problem is that a link to the front page IS EMPTY VALUE. Since obviously in a link to the front page there is nothing after the domain. So this piece of code ends up deleting the array item that contained the link to the front page (an empty value). I've successfully verified this by setting redirection to any other page, which does work as advertised. All is checked with a debugger so I am pretty confident this is in fact a real bug.
Updated by Jigal van Hemert about 13 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.5
How can a link to the home page be an empty value? That would result in <a href="">...</a>, which would link to the current page.
Even with realurl/cooluri the link to the home page would at least be "/", which is not empty and will be used as redirect.
Updated by Alexander Opitz almost 12 years ago
- Status changed from Needs Feedback to Closed
No response over one year => closed.