[TYPO3-dev] Location and realurl

Steffen Kamper steffen at sk-typo3.de
Mon Nov 19 20:19:37 CET 2007


"Bartosz Aninowski" <bart at REM-IT-sonik.pl> schrieb im Newsbeitrag 
news:mailman.1.1195497984.22947.typo3-dev at lists.netfielders.de...
> Hi.
> 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.
>
> Bart

its correct. if 1 is the rootpage, the url is empty because baseUrl is added 
first
baseUrl = http://www.domain.tld/
url =

complete: http://www.domain.tld/

vg  Steffen 






More information about the TYPO3-dev mailing list