Bug in formula for image widget

Bug in formula for image widget

@Graeme Rae

We have an image being created on a server:

http://www.server.com/data/d5923561-5842-4489-88f2-983829d7ea78.jpg

The filename is being stored on tago:
variable: filename
value: d5923561-5842-4489-88f2-983829d7ea78.jpg

My formula in an image widget is:

concat(“http://www.server.com/data/","$VALUE$”)

However the output URL is actually:

https://http//www.server.com/data/d5923561-5842-4489-88f2-983829d7ea78.jpg

Somehow there’s an extra “https” being tacked on the front.

If I use the same formula in a table widget and make it a link, the string comes out correctly:

http://www.server.com/data/d5923561-5842-4489-88f2-983829d7ea78.jpg

Note - this specific server cannot serve https data, only http

Is this a bug? Or is there a workaround? Or am I doing something wrong?!

EDIT: Adding a little more…

Similarly - if I pass a complete URL to the image widget:

variable: filename
value: http://www.myserver.com/data/d5923561-5842-4489-88f2-983829d7ea78.jpg

And remove the formula completely (so it’s just pulling filename from the blueprint) nothing shows up in the widget at all. However the tabular version does show the correct URL and is clickable.