fixed issue with route being converted as_const by jinja2 engine, e.g. causing issues with different urls