From 4d1d71beca336c6fd94014a7275ae44ec3acf900 Mon Sep 17 00:00:00 2001 From: jschlier <9108576+jschlier@users.noreply.github.com> Date: Mon, 17 Apr 2023 13:39:39 +0200 Subject: [PATCH] [BUGFIX] Return relative path where it is expected --- Classes/Utility/GeneralUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Utility/GeneralUtility.php b/Classes/Utility/GeneralUtility.php index 62976195..3a3ba1c4 100644 --- a/Classes/Utility/GeneralUtility.php +++ b/Classes/Utility/GeneralUtility.php @@ -685,7 +685,7 @@ public static function resolveRelPathFromSiteRoot($path) } $path = explode('/', $path); if (strpos($path[0], 'EXT') === 0) { - return \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName(implode('/', $path)); + return PathUtility::getPublicResourceWebPath(implode('/', $path), false); } $path = implode('/', $path); $path = str_replace('//', '/', $path);