Actions
Bug #96374
closedWrong include path calculated for RequireJS
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend JavaScript
Target version:
Start date:
2021-12-16
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
RequireJS
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
Context: a backend module (extension external_import) loads the 3rd-party library Datatables using:
$publicResourcesPath = PathUtility::getAbsoluteWebPath(
ExtensionManagementUtility::extPath('external_import')
) . 'Resources/Public/';
$pageRenderer = $view->getModuleTemplate()->getPageRenderer();
$pageRenderer->addRequireJsConfiguration(
[
'paths' => [
'datatables' => $publicResourcesPath . 'JavaScript/Contrib/jquery.dataTables'
]
]
);
This worked fine until TYPO3 11.5.3 and breaks with 11.5.4.
The reason is that the path is wrongly calculated as:
instead of:
Actions