Actions
Bug #82486
closedIncludeJS* / includeCSS* (including compression / concatenation) ignoring absRefPrefix
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-09-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The includeJS and includeCSS functions in typoscript are ignoring the given absRefPrefix.
I tested this on a fresh installation of TYPO3 8.7.6 with the following typoscript code:
config { absRefPrefix = /foo/ compressJs = 1 } page = PAGE page { 10 = TEXT 10.value = HELLO WORLD! # setting a link to test if absRefPrefix works 10.typolink.parameter = 1 includeJSLibs.js1 = fileadmin/js1.js includeJSLibs.js2 = fileadmin/js2.js includeCSS.css1 = fileadmin/css1.css includeCSSLibs.css1 = fileadmin/css1.css }
This gives me the following html output on the generated page:
<link rel="stylesheet" type="text/css" href="/fileadmin/css1.css?1505384618" media="all">
<link rel="stylesheet" type="text/css" href="/fileadmin/css1.css?1505384618" media="all">
<script src="/typo3temp/assets/compressed/js1-5130fdbc94c8b9e6f1802cab56df2b78.js?1505384940" type="text/javascript"></script>
<script src="/typo3temp/assets/compressed/js2-2a2ef88a17be994adbe3c851da68f8fe.js?1505384940" type="text/javascript"></script>
The sources do get a prefix - but it's "/" instead of the declared absRefPrefix "/foo/".
The test link on the other hand is generated correctly:
<a href="/foo/index.php?id=1">HELLO WORLD!</a>
Actions