Commit 3bce1c47 authored by Nicole Cordes's avatar Nicole Cordes Committed by Benni Mack
Browse files

[BUGFIX] Use correct path to JS resources

This problem is related to the change
The patch removed usage of ExtensionManagementUtility::extRelPath and
replaced it with other calls. While trying to resolve a relative path
in BackendController::loadResourcesForRegisteredNavigationComponents,
a wrong replacement was introduced. This patch ensures the old behaviour
to retrieve the relative path.

Resolves: #78490
Releases: master
Change-Id: I2c2edf6d1b02efd95b4485da88777eec0dd515c6

Tested-by: default avatarTYPO3com <>
Reviewed-by: Malte Koitka's avatarMalte Koitka <>
Tested-by: Malte Koitka's avatarMalte Koitka <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Tested-by: Benni Mack's avatarBenni Mack <>
parent 12c19164
......@@ -360,7 +360,7 @@ class BackendController
$info['extKey'] = 'backend';
$absoluteComponentPath = ExtensionManagementUtility::extPath($info['extKey']) . $componentDirectory;
$relativeComponentPath = PathUtility::getAbsoluteWebPath($absoluteComponentPath);
$relativeComponentPath = PathUtility::getRelativePath(PATH_site . TYPO3_mainDir, $absoluteComponentPath);
$cssFiles = GeneralUtility::getFilesInDir($absoluteComponentPath . 'css/', 'css');
if (file_exists($absoluteComponentPath . 'css/loadorder.txt')) {
// Don't allow inclusion outside directory
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment