[FIXED] How to use jinja variable inside a variable



result.download_url –> also a variable
how can i use it? I’ve tried with Curly and others, but they all fail.


Here’s how you should structure your url:

<a href="{{ url_for('osupgrade.download_stage_log', url='') }}{{result.download_url}}"  type="submit" target="_self">Download</a>

The value passed to the variable url is in a pair of braces isolated from the rest

Answered By – Tobin

Answer Checked By – Dawn Plyler (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published