Issue Bug Resolved

#107420Inline css asset collector should transform url() paths

Attila Glück 09/10/25, 08:56 updated 10/19/26, 21:00

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

  1. Petra Neumann commented <span data-processor="relativetime" data-value="2026-03-05T15:01:56+00:00" > 03/05/26, 15:01 </span>

    Same problem here.

    Relative URLs ../Icons/Frontend/icon.svg in CSS files
    • added via page.includeCSS in TypoSript setup are transformed into ../../../_assets/[hash]/Icons/Frontend/icon.svg which is perfectly fine
    • added via f:asset.css end up as ../../../../vendor/[vendorname]/[extensionname]/Resources/Public/Icons/Frontend/icon.svg which leads to a missing icon in the frontend
  2. Sabrina Zwirner commented and changed TYPO3 Version 13 14 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
    }

    By continuing to move more TypoScript into the Fluid templates and introducing the “Page ViewHelpers,” it is important to address this issue.

  3. Georg Ringer commented and changed status Under Review Resolved done 0 % 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.