diff --git a/Classes/ViewHelpers/StencilViewHelper.php b/Classes/ViewHelpers/StencilViewHelper.php index 0110d44..fb3f9c9 100644 --- a/Classes/ViewHelpers/StencilViewHelper.php +++ b/Classes/ViewHelpers/StencilViewHelper.php @@ -107,6 +107,10 @@ protected function getUrl(string $url): ?string private function getAbsoluteWebPath(string $file, bool $cacheBreaker = false): string { + if (PathUtility::hasProtocolAndScheme($file)) { + return $file; + } + if (PathUtility::isExtensionPath($file)) { $file = Environment::getPublicPath() . '/' . PathUtility::getPublicResourceWebPath($file, false); // as the path is now absolute, make it "relative" to the current script to stay compatible