Project

General

Profile

Bug #81944

Updated by Xavier Perseguers almost 7 years ago

Since #81486 we have a regression in @typo3/sysext/extbase/Classes/Service/ImageService.php@ for method @getImageUrl()@ 

 That is broken, when TYPO3 is inside a sub directory and absRefPrefix is configured to be that sub directory. 

 <pre> 
 localhost/master/ 
 absRefPrefix = /master/ 
 </pre> 

 then the resulting URI will be @/master/master/index.php@. 

 In addition, Helmut @Helmut suggests that we should wrap this in GeneralUtility::locationHeaderUrl() to make sure the final URI contains a scheme and host name. Only then we can be sure that all other code (including TS image URI code) will treat this as final UR within @/typo3/sysext/core/Classes/Resource/ResourceStorage.php@, 1237, that is the line: 

 <pre> 
 $publicUrl = PathUtility::getAbsoluteWebPath('index.php') . '?' . http_build_query($queryParameterArray, '', '&', PHP_QUERY_RFC3986); 
 </pre>

Back