you should use the jinja2 helper: `active|class_selected('dashboard')`