@@ -70,8 +70,10 @@ class FrontendTwigExtension extends AbstractExtension | |||
if (substr($path, 0, 1) === '/') $path = substr($path, 1); | |||
if ($path) { | |||
if (strpos($path, $this->getFileManagerFolder()) === false) { | |||
$path = $this->getFileManagerFolder() . '/' . $path; | |||
$fileManagerFolder = substr($this->getFileManagerFolder(), 1) ; | |||
if (strpos($path, $fileManagerFolder) === false) { | |||
$path = $fileManagerFolder . '/' . $path; | |||
} | |||
return $this->liipCacheHelper->getBrowserPath($path, $thumb); |