[TYPO3-dev] realurl and redirects
Steffen Kamper
steffen at sk-typo3.de
Wed May 14 14:33:39 CEST 2008
Hi,
i encountered a problem with redirect and realurl. It was on 4.0.1, but may
be it exists on later versions too.
The problem was that
$redirectUrl = $this->pi_getPageLink($this->piVars['backPid']);
header('location:'.$redirectUrl);
leads to wrong urls as some pagesegments were repeated.
Using this fixed it:
$redirectUrl = $this->pi_getPageLink($this->piVars['backPid']);
header('location:'.t3lib_div::locationHeaderUrl($redirectUrl));
I stumbled why that happens as i thought i will be save any time using
typolink-functions.
Can this be confirmed?
vg Steffen
More information about the TYPO3-dev
mailing list