Closed ghost closed 2 years ago
Hi, thanks for the PR! But, seeing as TYPO3 handles these paths in the core: https://github.com/TYPO3/typo3/blob/11.5/typo3/sysext/core/Classes/Utility/PathUtility.php#L63
I think it's enough to move the Resources/Public
inside the getAbsoluteWebPaths
calls?
So instead of:
$publicResourcesPath =
PathUtility::getAbsoluteWebPath(ExtensionManagementUtility::extPath('yoast_seo')) . 'Resources/Public/';
It would be:
$publicResourcesPath =
PathUtility::getAbsoluteWebPath(ExtensionManagementUtility::extPath('yoast_seo') . 'Resources/Public/');
Tested it in CMS9, 10 and 11 and all seem to work still. Would you agree?
We would only have to change these lines within PageLayoutHeader
and SnippetPreview
without the need for the extra utilities and composer packages.
@RinyVT you are right, works fine for me too just change my pl
@haassie i just fix it on my own