Project

General

Profile

Actions

Bug #19220

closed

felogin redirect to frontpage doesn't work

Added by Henrik Møller Rasmussen over 15 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2008-08-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Steffen Kamper over 15 years ago

please read manual for proper configuration

Actions #2

Updated by Vlatko Šurlan almost 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.

Actions #3

Updated by Jigal van Hemert over 12 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.

Actions #4

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Needs Feedback to Closed

No response over one year => closed.

Actions

Also available in: Atom PDF