[TYPO3-english] typoLink_URL, forceAbsoluteUrl, and SEO friendly URLs
Bernhard Schenkenfelder
bernhard at schenkenfelder.co.at
Sun Dec 21 16:22:42 CET 2014
Let's say the snippet
$conf['parameter'] = $_GET['id'];
$cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer');
$cObj->typoLink_URL($conf);
returns "features.html" (or any other SEO friendly URL). Now if I add
$conf['forceAbsoluteUrl'] = true;
the return value changes to http://10.0.0.82/typo3/index.php?id=33.
Is this the expected behavior? What do I need to do to retrieve http://10.0.0.82/typo3/features.html?
Many thanks,
Bernhard
More information about the TYPO3-english
mailing list