#96452Path to _assets not properly exposed in frontend
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
}