Bug #83630
closedConfig.absRefPrefix not working anymore for includeCSS, includeJs, includeJSLibs, includeCSSLibs after update to 8.7.9
100%
Description
Hello typo3 team
after a typo3 update from 8.7.8 to 8.7.9 i get the problem that the includeJSLibs, includeCSS, includeCSSLibs, ... Links are not anymore absolute in the frontend. Images files works. It means absRefPrefix not works anymore.
greets
Updated by Riccardo De Contardi about 7 years ago
I performed the following test with 8.7.9 (fresh install):
config{ no_cache = 1 absRefPrefix = http://typo3.8.test/ } page.includeCSS { file1 = fileadmin/teststylesheet.css }
Results:¶
the stylesheet in <head>
don't have the prepended absRefPrefix:
<link rel="stylesheet" type="text/css" href="/typo3temp/assets/css/d42b6e1bdf.css?1510479815" media="all"> <link rel="stylesheet" type="text/css" href="/fileadmin/teststylesheet.css?1516558177" media="all">
All other links (like header links of content elements, HMENU object, links inserted in RTE) instead have http://typo3.8.test/
prepended.
I don't have an 8.7.8 environment, but I performed the same test on 7.6.23 and it works as expected.
Updated by Riccardo De Contardi about 7 years ago
- Subject changed from typo3 update from 8.7.8 to 8.7.9 to Config.absRefPrefix not working anymore for includeCSS, includeJs, includeJSLibs, includeCSSLibs after update to 8.7.9
Updated by Georg Ringer about 7 years ago
i tested it even with 8.7.0 and is still prefixed with / only!
Updated by Riccardo De Contardi about 7 years ago
Affects also 9.2.0-dev (latest master)
Updated by Riccardo De Contardi about 7 years ago
- Related to Bug #77722: absRefPrefix is not applied everywhere added
Updated by Riccardo De Contardi about 7 years ago
- Related to Bug #82486: IncludeJS* / includeCSS* (including compression / concatenation) ignoring absRefPrefix added
Updated by Riccardo De Contardi about 7 years ago
There is a suggestion in #82486
Updated by Georg Ringer about 7 years ago
IMO this doesnt even work with 7. can someone confirm?
Updated by Oliver Hader about 7 years ago
Works in TYPO3 v7.6.25-dev, did not work in v8.7.0... so, that's not a recent "regression"...
Updated by Oliver Hader about 7 years ago
- Related to Task #77589: Allow EXT: syntax in PageRenderer and Compressor added
Updated by Oliver Hader about 7 years ago
Introduced in #77589 which automatically prefixes with an absolute prefix /
in PageRenderer::getStreamlinedFileName
.
The according absRefPrefix
handling in TypoScriptFrontendController::setAbsRefPrefix
does not consider the leading slash whatsoever.
This behavior has been introduced in TYPO3 v8.4.0 already and thus is not a recent regression in the 8.7 LTS branch.
Updated by Oliver Hader about 7 years ago
- in TSFE extend the absRefPrefix search/replace logic by
TYPO3_SITE_PATH
prefix replacements (which does not cover if this has been used explicitly) - add special handling in PageRenderer whether to apply
TYPO3_SITE_PATH
at all (default might be true, disabled inPageGenerator
- cave: PageRenderer is used for frontend and backend,TYPO3_SITE_PATH
is perfectly fine and valid for backend usage)
Updated by Markus Klein about 7 years ago
- Has duplicate Bug #82486: IncludeJS* / includeCSS* (including compression / concatenation) ignoring absRefPrefix added
Updated by Markus Klein about 7 years ago
- Related to deleted (Bug #82486: IncludeJS* / includeCSS* (including compression / concatenation) ignoring absRefPrefix)
Updated by Oliver Hader about 7 years ago
- Status changed from New to In Progress
Updated by Oliver Hader about 7 years ago
- Related to deleted (Bug #77722: absRefPrefix is not applied everywhere)
Updated by Oliver Hader about 7 years ago
Removed reference to #77722 which is about extending the absRefPrefix functionality to any mention of those files - this is not related to this bug, but rather a new feature or behavior.
Updated by Gerrit Code Review about 7 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56108
Updated by Gerrit Code Review about 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56108
Updated by Gerrit Code Review about 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56108
Updated by Gerrit Code Review about 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56108
Updated by Gerrit Code Review about 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56108
Updated by Gerrit Code Review about 7 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56108
Updated by Gerrit Code Review about 7 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56108
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56126
Updated by Oliver Hader about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0162ff19abffb3f12797ff100d6425b84ea68529.