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.
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}}
@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}}