From 3e47dd17bde070ee3d32aef99f6da6bbca229009 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 18 Dec 2024 21:24:47 +0000 Subject: [PATCH] [5.x] Fix CP thumbnail placeholder (#11279) --- src/Http/Controllers/CP/Assets/ThumbnailController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/CP/Assets/ThumbnailController.php b/src/Http/Controllers/CP/Assets/ThumbnailController.php index 8c0e1c2c94..6a9245c601 100644 --- a/src/Http/Controllers/CP/Assets/ThumbnailController.php +++ b/src/Http/Controllers/CP/Assets/ThumbnailController.php @@ -174,7 +174,7 @@ private function mutex() /** * If an image is deemed too large for thumbnail generation, we'll give it a placeholder icon. * - * @return \Illuminate\Http\RedirectResponse|null + * @return \Illuminate\Http\Response */ private function getPlaceholderResponse() { @@ -185,6 +185,6 @@ private function getPlaceholderResponse() return; } - return redirect(Statamic::cpAssetUrl('svg/filetypes/picture.svg')); + return response(Statamic::svg('filetypes/picture'))->header('Content-Type', 'image/svg+xml'); } }