Skip to content

Commit

Permalink
[5.x] Fix CP thumbnail placeholder (#11279)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Dec 18, 2024
1 parent f44afc5 commit 3e47dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/CP/Assets/ThumbnailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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');
}
}

0 comments on commit 3e47dd1

Please sign in to comment.