{% set path = request.url.path %} {% set section = 'gov' %} {% if path.startswith('/lecture-auto') %}{% set section='other' %} {% elif path.startswith('/group') %}{% set section='group' %}{% endif %}