From 5a3852db1298022f2657cef933d9f2d27f5e146f Mon Sep 17 00:00:00 2001 From: team 1 Date: Sat, 21 Feb 2026 11:42:02 +0100 Subject: [PATCH] fix admin trailing --- src/Controller/Admin/DashboardController.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Controller/Admin/DashboardController.php b/src/Controller/Admin/DashboardController.php index 5ce6a71..e925f54 100644 --- a/src/Controller/Admin/DashboardController.php +++ b/src/Controller/Admin/DashboardController.php @@ -7,19 +7,21 @@ use App\Index\IndexMetaManager; use App\Ingest\IngestFlow; use App\Vector\VectorIndexHealthService; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; +use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class DashboardController extends AbstractController { - #[Route('/admin', name: 'admin_dashboard')] - public function index(VectorIndexHealthService $health): Response + #[Route('', name: 'admin_dashboard_null')] + #[Route('/', name: 'admin_dashboard_trail')] + #[Route('/admin', name: 'admin_dashboard_alias')] + public function trailNull(IndexMetaManager $metaManager,VectorIndexHealthService $health): RedirectResponse { - return $this->render('admin/dashboard/index.html.twig', [ - 'vectorHealth' => $health->check() - ]); + return $this->redirectToRoute('admin_dashboard'); } + #[Route('/admin/dashboard', name: 'admin_dashboard')] public function dashboard(IndexMetaManager $metaManager,VectorIndexHealthService $health): Response {