[TYPO3-dev] Location and realurl
Dmitry Dulepov [typo3]
dmitry at typo3.org
Tue Nov 20 09:35:00 CET 2007
Bartosz Aninowski wrote:
> Tell me if it is bug or not.
> Here is my piece of code
> $RedirectUrl = $this->pi_getPageLink(1);
> header('Location: '.t3lib_div::makeRedirectUrl($RedirectUrl));
> If I enable realurl $this->pi_getPageLink(1); returns nothing so redirec
> dosn't work.
Wrong. It should be t3lib_div::locationHeaderUrl(). The function that you use is internal and must not be used in your code.
--
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
More information about the TYPO3-dev
mailing list