From 5696f23f3db52c345684b039d2a67ca2dab427f5 Mon Sep 17 00:00:00 2001 From: Krzysiej Date: Tue, 27 Jan 2026 08:56:54 +0100 Subject: [PATCH] Display big category tree on route /category/ without parameter --- src/Controller/CategoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/CategoryController.php b/src/Controller/CategoryController.php index 584c93a..c950ae1 100644 --- a/src/Controller/CategoryController.php +++ b/src/Controller/CategoryController.php @@ -8,7 +8,7 @@ use Symfony\Component\Routing\Attribute\Route; final class CategoryController extends BaseController { - #[Route('/category/{category?}', name: 'app_category', defaults: ["category" => null])] + #[Route('/category/{category?}', name: 'app_category')] public function __invoke(?string $category): Response { if($this->cache->getItem('list_category_'.$category)->isHit()) {