Dashboard - Adding 'Click Behavior' to an image field converts image to URL

This is my first post here, so please let me know if I'm misusing the site.

I am currently looking at version 0.40.1 as we prepare to upgrade from 0.38.0. I'm running into one seemingly small issue that is actually a pretty big issue for us in practice.

I have several dashboards that display book cover art. When users click on the cover, it is supposed to take them to the title in our local catalog. I accomplish this by generating the image's URL with SQL in the question, and then adding click behavior to field on the dashboard to redirect to the entry in our catalog.

However in 0.40.1, when I add click behavior to the image, it reverts itself to the URL of the image.

I need to keep both the click behavior and image for the dashboard.

I have reported this in Github, as well.

@jamundson off topic, but how were you able to render an image of this size directly in your table?

I'm searching for quite a while and the only result that I got was a 40x25 image.

Thanks in advance.

@hsberlesi Check the last three commits on this repo (I don't know if they can be easily applied on newer versions, but it'll get you in the right direction):
https://github.com/verisart/metabase/commits/verisart-images-changes
Here's the issue for it:
https://github.com/metabase/metabase/issues/10260 - upvote by clicking :+1: on the first post

1 Like

Already done! Thanks for the helpful input as always, @flamber

@hsberlesi @flamber We are using jdmwood's patch without issue in 0.38.0, and it looked like it was going to work with 0.40.1, as well.

FWIW, my organization wouldn't be able to use Metabase without this patch. The larger image size is important for our work.

1 Like