Actions
Bug #91219
closedAssetCollector (or Renderer) does not consider [FE][versionNumberInFilename]
Start date:
2020-04-28
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The new AssetCollector (or Renderer) does not consider the settings from [FE][versionNumberInFilename].
Maybe because it does not using the following lines, like PageRenderer::processJsFile() does:
// [...]
$filename = GeneralUtility::createVersionNumberedFilename($filename);
// [...]
Updated by Julian Mair over 4 years ago
FYI, I tried a bit and this fix worked:
// [...]
private function getAbsoluteWebPath(string $file): string
{
if (strpos($file, '://') !== false || strpos($file, '//') === 0) {
return $file;
}
return GeneralUtility::createVersionNumberedFilename(PathUtility::getAbsoluteWebPath(GeneralUtility::getFileAbsFileName($file)));
}
Would this be an adequate solution?
Updated by Georg Ringer about 4 years ago
- Related to Bug #91889: AssetRenderer does not respect FE.versionNumberInFilename added
Actions