diff --git a/src/Bundle/ChillEventBundle/Controller/EventController.php b/src/Bundle/ChillEventBundle/Controller/EventController.php index 7de673c76..d4370db90 100644 --- a/src/Bundle/ChillEventBundle/Controller/EventController.php +++ b/src/Bundle/ChillEventBundle/Controller/EventController.php @@ -256,16 +256,7 @@ final class EventController extends AbstractController ]); } - /** - * 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')] + #[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{id}/show', name: 'chill_event__event_show')] public function showAction(Event $event, Request $request) { if (!$event) { diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/page_list.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/page_list.html.twig index 2938b06d2..27aaeecb4 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/page_list.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/page_list.html.twig @@ -111,7 +111,7 @@ block js %} href="{{ chill_path_add_return_path( 'chill_event__event_show', - { event_id: e.id } + { id: e.id } ) }}" class="btn btn-show"