XF 2.0 Widget template is adding current route to an image source URL

Marcel

Active member
...and I can't figure out why

My thread entity has an extra field which stores the server path of a thumbnail
All the code is set up to pull it through into a widget.

Adding this to the widget template :
Code:
{$thread.mbth_thumb_url}
correctly gives
"/data/thumbs/12345.jpg"

However, adding this to the widget template :
Code:
<img src="{$thread.mbth_thumb_url}" />[/img]
incorrectly tries to render an image with the URL of

The correct url should be

How do I stop it automatically adding 'ewr-porta' (Which is from EWR's XenPorta2, where I'm displaying the widget.
If I display the widget somewhere else, for example on Forum List : Above Nodes, it renders the thumb URL correctly.

Thank you :)
 
Fixed it!

I changed the line in the template to
Code:
<img src="{$xf.options.boardUrl}/{$thread.mbth_thumb_url}" />
 
Top Bottom