Clicking on a scatterplot redirects to full URL

Hi,

I have a column “URL” in my table with a full URL (e.g.: https://example.com). I’d like to redirect the user to that URL whenever they click on a scatterplot.

I tried implementing this using the “Click behavior” functionality, but it didn’ work. If I link to “{{URL}}” and click on the plot, redirects me to “http://my-metabase-instance.com/https://example.com”. In other words, it encodes my variable as a relative URL.

Is it possible to link to absolute URLs? How?

I’m using the lastest Metabase on Metabase Cloud.

Best,
Vitor.

Hi @vitorbaptista
It’s not specific to scatter, but any “Click behavior”.
Currently all variables are encoded. Workaround would be to make a redirect script on your webserver, so you can do something like https://example.com/?redirect={{URL}}

Got it. Any plans on implementing this?

@vitorbaptista
I don’t see how this will be possible unless there’s some sort of setting to toggle encoding on/off.
Perhaps a solution would be to automatically not encode the first variable if there’s no preceding text. This would allow for dual usage like {{URL}} and {{URL}}?something={{VARIABLE}}

For reference:
https://github.com/metabase/metabase/issues/14846 - upvote by clicking :+1: on the first post