From 2528d746d6010aad8196076597f38b865af3f61a Mon Sep 17 00:00:00 2001 From: yroberttissot <70005531+yroberttissot@users.noreply.github.com> Date: Wed, 27 Apr 2022 16:13:32 +0200 Subject: [PATCH] fix pathing replaced app.request.pathinfo with url('view_shared_project_timesheets', {projectId: sharedProject.project.id, shareKey: sharedProject.shareKey}) because of pathing issue (I hadd error 404 with app.request.pathingo -> part of path was missing) --- Resources/views/view/timesheet.html.twig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Resources/views/view/timesheet.html.twig b/Resources/views/view/timesheet.html.twig index f55ffb8..b32684b 100644 --- a/Resources/views/view/timesheet.html.twig +++ b/Resources/views/view/timesheet.html.twig @@ -34,7 +34,7 @@
1 %}href="{{ app.request.pathinfo }}?year={{ year }}&month={{ month - 1 }}{% if detailsMode != 'table' %}&details={{ detailsMode }}{% endif %}"{% endif %}> + {% if month > 1 %}href="{{ url('view_shared_project_timesheets', {projectId: sharedProject.project.id, shareKey: sharedProject.shareKey}) }}?year={{ year }}&month={{ month - 1 }}{% if detailsMode != 'table' %}&details={{ detailsMode }}{% endif %}"{% endif %}>
@@ -47,21 +47,21 @@
+ {% if month < 12 %}href="{{ url('view_shared_project_timesheets', {projectId: sharedProject.project.id, shareKey: sharedProject.shareKey}) }}?year={{ year }}&month={{ month + 1 }}{% if detailsMode != 'table' %}&details={{ detailsMode }}{% endif %}"{% endif %}>
- +
@@ -74,13 +74,13 @@
- +
@@ -108,11 +108,11 @@

{{ 'shared_project_timesheets.view.table.title' | trans }}

{% if monthlyChartVisible %}
- + {{ 'shared_project_timesheets.view.details.table' | trans }} - + {{ 'shared_project_timesheets.view.details.chart' | trans }} @@ -184,4 +184,4 @@ {% endif %}
-{% endblock %} \ No newline at end of file +{% endblock %}