[TYPO3] Getting complete URL

Peter Poulsen peter at typoconsult.dk
Thu Aug 24 09:22:16 CEST 2006


Some code:

$link = $GLOBALS['TSFE']->cObj->currentPageURL(array('foo' => 'bar'));
header('Location: '. $link);

This won't work as $link is:
this/page/?foo=bar (using realurl)

I would like to have something like:
http://myserver.dk/this/page/?foo=bar

Is there a 'typo3-way' of prepending the server name to the link?

Also, is there a better way of making a redirect in typo3, than simply
using php's header('location....)?

/peter




More information about the TYPO3-english mailing list