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'); } }