Issue Bug Resolved

#104460Asset ViewHelper does not take config.forceAbsoluteUrls into account

Patrick Lenk 07/23/24, 12:34 updated 10/06/26, 07:25

Description

If the option config.forceAbsoluteUrls is set, all links, reference to images or assets previously built with a relative or absolute path will be rendered as absolute URLs with the site prefix / current domain.
Like described in https://docs.typo3.org/m/typo3/reference-typoscript/12.4/en-us/TopLevelObjects/Config.html#confval-config-forceabsoluteurls

Unfortunately, this does not seem to apply to the two asset viewhelpers f:asset.css and f:asset.script.
Assets have stil relative URLs.

In my scenario, i add assets with the asset viewhelpers to fluid layouts, partials or templates of third-party extensions to add these assets only to pages with these extensions/plugins.

Reviews 9

History 923

  1. Sébastien Delcroix commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-04-24T11:30:08+00:00" > 04/24/25, 11:30 </span>

    Applied in changeset commit:ab3896aa43a88f11fc51a492ea4bf2b5bc060b0e.

  2. Benni Mack commented and changed status Resolved Accepted <span data-processor="relativetime" data-value="2025-05-14T11:44:15+00:00" > 05/14/25, 11:44 </span>

    Re-opened. We need to create a new issue when wanting to fix this.

  3. Gerrit Code Review pushed patch set 1 for main to change 96394 status Accepted Under Review <span data-processor="relativetime" data-value="2026-10-06T04:54:12+00:00" > 10/06/26, 04:54 </span>

  4. Georg Ringer commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-10-06T07:25:09+00:00" > 10/06/26, 07:25 </span>

    Applied in changeset commit:16858f253eeb7def0807e7ff2a5afc923bd08e32.