diff --git a/src/Plenta/ContaoTinyCompressImages/EventListener/DataContainerListener.php b/src/Plenta/ContaoTinyCompressImages/EventListener/DataContainerListener.php index 0f89719..7b4779e 100644 --- a/src/Plenta/ContaoTinyCompressImages/EventListener/DataContainerListener.php +++ b/src/Plenta/ContaoTinyCompressImages/EventListener/DataContainerListener.php @@ -58,7 +58,7 @@ public function onTinyCompressImagesButtonCallback(array $row, ?string $href, st /** @var FilesModel $fileAdapter */ $fileAdapter = $this->framework->getAdapter(FilesModel::class); - $file = $fileAdapter->findByPath($row['id']); + $file = $fileAdapter->findByPath(rawurldecode($row['id'])); if (!$file instanceof FilesModel) { return '';