Project

General

Profile

Actions

Bug #96452

closed

Path to _assets not properly exposed in frontend

Added by Oliver Hader almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2022-01-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

  • TYPO3 v11.5.4
  • typo3/cms-composer-installers:4.0.0-RC1
  • Site Config base /
  • Requested URI: /festival/2022, assets not loaded in browser as a result (since assets were incorrectly loaded from /festival/_assets/, instead of /_assets/)

Fronted Result (focus on different occurrences of _assets/)

  <head>
  <link rel="icon" href="/_assets/af46f1853e4e259cbb8ebcb816eb0403/Icons/favicon.ico" type="image/vnd.microsoft.icon">
  <title>2022</title>
  ...
! <link rel="stylesheet" href="_assets/af46f1853e4e259cbb8ebcb816eb0403/Css/app.css?1640789421" media="all">
! <script src="_assets/af46f1853e4e259cbb8ebcb816eb0403/JavaScript/external.js?1638873796"></script>
! <script src="_assets/af46f1853e4e259cbb8ebcb816eb0403/JavaScript/elements.js?1638968585" type="module"></script>
  </head>
  ...
  <body>
  ...
  <img src="/_assets/af46f1853e4e259cbb8ebcb816eb0403/Vectors/indie-musik-ev-logo.svg">

Those lines not having a site base URI prefix, have been defined via TypoScript, thus being added in <head> via PageRenderer.

page.includeCSS {
  site_app = EXT:site/Resources/Public/Css/app.css
}

page.includeJSLibs {
  site_external = EXT:site/Resources/Public/JavaScript/external.js
  site_elements = EXT:site/Resources/Public/JavaScript/elements.js
  site_elements.type = module
}
Actions #1

Updated by Oliver Hader almost 3 years ago

  • Description updated (diff)
Actions #2

Updated by Oliver Hader almost 3 years ago

  • Description updated (diff)
Actions #3

Updated by Oliver Hader almost 3 years ago

  • Description updated (diff)
Actions #4

Updated by Oliver Hader almost 3 years ago

  • Description updated (diff)
Actions #5

Updated by Oliver Hader almost 3 years ago

  • Description updated (diff)
Actions #6

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72952

Actions #7

Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72954

Actions #8

Updated by Oliver Hader almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF