Fix passing of id parameter to route

This commit is contained in:
Julie Lenaerts 2025-06-11 17:22:31 +02:00
parent 260f3f2109
commit 2b86bf7ba4
2 changed files with 2 additions and 11 deletions

View File

@ -256,16 +256,7 @@ final class EventController extends AbstractController
]); ]);
} }
/** #[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{id}/show', name: 'chill_event__event_show')]
* Finds and displays a Event entity.
*
* @ParamConverter("event", options={"id": "event_id"})
*
* @return Response
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{event_id}/show', name: 'chill_event__event_show')]
public function showAction(Event $event, Request $request) public function showAction(Event $event, Request $request)
{ {
if (!$event) { if (!$event) {

View File

@ -111,7 +111,7 @@ block js %}
href="{{ href="{{
chill_path_add_return_path( chill_path_add_return_path(
'chill_event__event_show', 'chill_event__event_show',
{ event_id: e.id } { id: e.id }
) )
}}" }}"
class="btn btn-show" class="btn btn-show"