#107420Inline css asset collector should transform url() paths
Description
If i use <f:asset.css inline=“1” and i have a relativ url in css like background: url(“../Images/arrowSlider.svg”)
The inline css should be: url(“/_assets/48ec33dfe323850eb91c958c1bf1af5d/Images/arrowSlider.svg”)
Reviews 2
History 47
-
Garvin Hicking changed category <span data-processor="relativetime" data-value="2025-09-10T12:47:34+00:00" > 09/10/25, 12:47 </span>
-
Sabrina Zwirner commented and changed TYPO3 Version
1314 PHP Version 8.5 <span data-processor="relativetime" data-value="2026-04-21T12:37:53+00:00" > 04/21/26, 12:37 </span>Still an issue in TYPO3 v14.3
<f:asset.css identifier="main" inline="true" href="EXT:provider/Resources/Public/assets/css/main.min.css"/>Currently its only working correctly within typoscript:
page.includeCSS { main = EXT:provider/Resources/Public/assets/css/main.min.css main.inline = 1 }- creates the correct url
https://test-page.de/_assets/[hash]/assets/fonts/SourceSans3/source-sans-3-v19-latin-500.woff2?1776772529
By continuing to move more TypoScript into the Fluid templates and introducing the “Page ViewHelpers,” it is important to address this issue.
- creates the correct url
-
Gerrit Code Review pushed patch set 1 for main to change 96737 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-15T19:52:20+00:00" > 10/15/26, 19:52 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 96891 <span data-processor="relativetime" data-value="2026-10-19T20:55:35+00:00" > 10/19/26, 20:55 </span>
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 96891 <span data-processor="relativetime" data-value="2026-10-19T20:56:26+00:00" > 10/19/26, 20:56 </span>
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-19T21:00:11+00:00" > 10/19/26, 21:00 </span>Applied in changeset commit:fdca3db901443f7dfab4d3b746524434b8afec4b.
Same problem here.
Relative URLs../Icons/Frontend/icon.svgin CSS filespage.includeCSSin TypoSript setup are transformed into../../../_assets/[hash]/Icons/Frontend/icon.svgwhich is perfectly finef:asset.cssend up as../../../../vendor/[vendorname]/[extensionname]/Resources/Public/Icons/Frontend/icon.svgwhich leads to a missing icon in the frontend