#96374Wrong include path calculated for RequireJS
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:
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.