Construct the correct current path, when serving from a subdirectory

This fixes issue #274
This commit is contained in:
Jan Böhmer 2024-10-13 22:49:42 +02:00
parent 0c47aa226c
commit 7145bce605
10 changed files with 12 additions and 12 deletions

View file

@ -2,7 +2,7 @@
<div class="btn-group mb-2 mt-2">
<a class="btn btn-success" {% if not is_granted('@projects.edit') %}disabled{% endif %}
href="{{ path('project_add_parts', {"id": project.id, "_redirect": app.request.baseUrl ~ app.request.requestUri}) }}">
href="{{ path('project_add_parts', {"id": project.id, "_redirect": app.request.baseUrl ~ app.request.pathInfo}) }}">
<i class="fa-solid fa-square-plus fa-fw"></i>
{% trans %}project.info.bom_add_parts{% endtrans %}
</a>