Does a custom image block now require the `location` field in Kirby 6?

,

I’m updating a project locally from v5 to v6 to check and fix any compatibility issues. In this project, I have a custom image block blueprint with the location field removed because I don’t want editors to attach image from external URLs. This setup worked fine in v4 and v5.

But as I updated the Kirby core to v6 yesterday, I realised that the Panel preview for image blocks is missing (showing the “Select an image …” instead of showing the already selected image). It makes me wonder what was causing the issue.

As I almost give up for the day, I added the location field back into my custom image block blueprint. On the content block editor, I selected the kirby (This website/Internal) option, and that’s when the Panel started showing the image preview again.

Is this a bug?

It’s a bug unfortunately. Will be fixed with 6.0.1. fix: Image and video block previews by distantnative · Pull Request #8945 · getkirby/kirby · GitHub

6.0.1 is now released: https://github.com/getkirby/kirby/releases/tag/6.0.1