Bug #88184
closedBackend JS and CSS is not compressed with Viewhelper f:be.container and TYPO3 in subdirectory
100%
Description
I have an extension with a backend module and some js and css for backend, that is added with viewhelper f:be.container like
<f:be.container
includeCssFiles="{0: '{f:uri.resource(path:\'Styles/styles.css\')}'}"
includeJsFiles="{
0: '{f:uri.resource(path:\'JavaScript/search.js\')}',
1: '{f:uri.resource(path:\'JavaScript/import.js\')}'
}"
>
This works fine, if TYPO3 is installed in the root directory of domain. It also works if backend js does not get compressed, which is most likely the case for development environment with BE/debug = 1.
If both conditions are not met, the files are not included.
I have TYPO3 installed under somedomain.tld/subdir, BE/debug = 0 and tried with and without a site configuration. The error happens somewhere between class PageRenderer and RessourceCompressor. In class ResourceCompressor the filepaths are not determined correctly and the file can not be read. I am not sure, where to fix this issue. Perhaps, this not only affects this certain viewhelper and the scope of this bug is bigger.
In my case, I tested with extension ig_ldap_sso_auth, but this should not be relevant for the bug.
My workaround is to set BE/debug = 1.