Issue Bug Closed

#22932t3lib_tstemplate::linkData - external url not with scheme in ['totalURL']

Ulrich Fischer 06/18/10, 19:52 updated 01/23/14, 08:24

Description

Absolute links from pages with doktype 3, url and urltype are rendered as relative links. The scheme is missing.

To solve this problem insert in t3lib_tstemplate::linkData after compiling the normal total url (line 1488):

if ($page)[‘doktype’] == 3 && $page[‘url’]!=’‘){
switch($page[‘urltype’]){
case 0:
$scheme = ‘’;
break;
case 1:
$scheme = ‘http://’;
break;
case 2:
$scheme = ‘ftp://’;
break;
case 3:
$scheme = ‘mailto:’;
break;
case 4:
$scheme = ‘https://’;
break;
}
$LD[‘totalURL’] = $scheme . $tmpPage[‘url’];
}
(issue imported from #M14786)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.