Actions
Bug #22932
closedt3lib_tstemplate::linkData - external url not with scheme in ['totalURL']
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-06-18
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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)
Actions