|
@@ -96,7 +96,7 @@ class LocalStorage implements FileStorageInterface
|
|
|
public function getImageUrl(File $file, string $size, bool $relativePath): string
|
|
public function getImageUrl(File $file, string $size, bool $relativePath): string
|
|
|
{
|
|
{
|
|
|
$filterName = $this->getFilterFromSizeAndConfig($size, !empty($file->getConfig()));
|
|
$filterName = $this->getFilterFromSizeAndConfig($size, !empty($file->getConfig()));
|
|
|
- $path = $file->getPath();
|
|
|
|
|
|
|
+ $path = $file->getSlug();
|
|
|
|
|
|
|
|
if (!$this->cacheManager->isStored($path, $filterName)) {
|
|
if (!$this->cacheManager->isStored($path, $filterName)) {
|
|
|
try {
|
|
try {
|
|
@@ -159,6 +159,7 @@ class LocalStorage implements FileStorageInterface
|
|
|
|
|
|
|
|
$file = (new File())
|
|
$file = (new File())
|
|
|
->setName($filename)
|
|
->setName($filename)
|
|
|
|
|
+ ->setSlug(null)
|
|
|
->setOrganization($organization)
|
|
->setOrganization($organization)
|
|
|
->setPerson($person)
|
|
->setPerson($person)
|
|
|
->setType($type)
|
|
->setType($type)
|