[TYPO3-english] CoolUri with prefix 'auto'
Jigal van Hemert
jigal.van.hemert at typo3.org
Mon Sep 14 23:35:24 CEST 2015
Hi,
On 14/09/2015 22:57, Jan Bednarik wrote:
> yes, that's it. CoolUri doesn't support "auto". As I understand it,
> CoolUri should ignore absRefPrefix when set to "auto". But I'm not sure
> about that.
In typo3/sysext/frontend/Classes/Page/PageGenerator.php:87-97
absRefPrefix is handled:
// calculate the absolute path prefix
if (!empty($tsfe->config['config']['absRefPrefix'])) {
$absRefPrefix = trim($tsfe->config['config']['absRefPrefix']);
if ($absRefPrefix === 'auto') {
$tsfe->absRefPrefix = GeneralUtility::getIndpEnv('TYPO3_SITE_PATH');
} else {
$tsfe->absRefPrefix = $absRefPrefix;
}
} else {
$tsfe->absRefPrefix = '';
}
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-english
mailing list