fix: properly forward return urls where missing

This commit is contained in:
Björn Fromme
2026-08-11 14:34:46 +02:00
parent 102e1c1c3c
commit 48cd2d6b67
27 changed files with 194 additions and 24 deletions
@@ -1,7 +1,13 @@
{% extends 'htmx_modal.html.twig' %}
{% block title %}
Teamer:inneninfo <a href="{{ path('app_administrative_teamer_profile', { 'uuid': teamer.uuid, 'r': returnUrl }) }}">{{ teamer }}</a>
{# The profile is administrative only, house managers reach this modal but not it. #}
Teamer:inneninfo
{% if is_granted('ROLE_ADMINISTRATIVE') %}
<a href="{{ path('app_administrative_teamer_profile', { 'uuid': teamer.uuid, 'r': returnUrl }) }}">{{ teamer }}</a>
{% else %}
{{ teamer }}
{% endif %}
{% endblock %}
{% block content %}