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.
Updated by Christian Hackl over 5 years ago
perhaps in connection with https://forge.typo3.org/issues/88150
Updated by Frank Nägler over 5 years ago
- Category changed from Backend JavaScript to Backend API
Updated by Georg Ringer over 4 years ago
- Related to Bug #90689: ResourceCompressor can't deal with paths relative to docroot (Reoccurrence) added
Updated by Gerrit Code Review over 4 years ago
- Status changed from New to Under Review
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.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/+/63773
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch 9.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/+/63773
Updated by Gerrit Code Review over 4 years ago
Patch set 3 for branch 9.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/+/63773
Updated by Markus Klein over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6c6baa8787b5fa092db801ab15584617f6e78233.