Actions
Bug #90694
closedAllow external references in AssetRenderer
Start date:
2020-03-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The new AssetCollector and AssetRenderer contains a bug with external source.
The AssetColelctor accept external references like https://foo.com/bar.js but the AssetRenderer kills the URL and creates a broken output.
Example:
$this->assetCollector->addJavaScript('main', 'https://typo3.org/main.js', [
'type' => 'application/javascript',
'id' => 'myIdentifier'
]);
<script type="application/javascript" id="myIdentifier" src="/"></script>
Actions