diff --git a/src/Controller/MenuItemController.php b/src/Controller/MenuItemController.php index c7d9aaf..db4eb0e 100644 --- a/src/Controller/MenuItemController.php +++ b/src/Controller/MenuItemController.php @@ -48,6 +48,8 @@ final class MenuItemController extends AbstractController $entityManager->flush(); } - return $this->redirectToRoute('app_menu_item_index', [], Response::HTTP_SEE_OTHER); + return $this->redirectToRoute('app_food_vendor_show', [ + 'id' => $menuItem->getFoodVendor()->getId() + ], Response::HTTP_SEE_OTHER); } }