Prechádzať zdrojové kódy

Correction problème de routes pour les pages encore

Sangfroid 8 mesiacov pred
rodič
commit
c80c2d08ca
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/Controller/PageController.php

+ 1 - 1
src/Controller/PageController.php

@@ -37,7 +37,7 @@ class PageController extends AbstractController
             $em->flush();
 
             $this->addFlash('success', 'Contenu modifié');
-            return $this->redirectToRoute('app_page_show', ['name' => $page->getName()]);
+            return $this->redirectToRoute('app_page_show', ['id' => $page->getName()]);
         }
 
         return $this->render('page/edit.html.twig', [