Issue Bug Rejected

#105592The TypoScript option "external" must be evaluated before an external CSS/JS resource gets included

Josef Glatz 11/13/24, 15:17 updated 11/14/25, 11:29

Description

Problem/Description

In https://review.typo3.org/c/Packages/TYPO3.CMS/+/27130 the functionality was removed. Looks like the regression exists for about 10 years

Example:

- page.includeCSS.1 must be included
- page.includeCSS.2 must NOT be included

  page.includeCSS {
    1 = https://unpkg.com/open-props
    2 = https://unpkg.com/open-props/normalize.min.css
    1.external = 1
    2.external = 0
  }

page.includeCSS.2 gets also included without applying any patch to the TYPO3 core.

ToDo(s)

  • Re-add check if the url to js/css resource begins with https, http or // and only include it if external option is set.

Acceptance Criteria

  • The external JS/CSS includes must work like it was before some time ago
  • The external JS/CSS includes must work like it is documented (Link to documentation)

Reviews 2