|
@@ -58,7 +58,7 @@ final class ArticleController extends AbstractController
|
|
|
$entityManager->persist($article);
|
|
|
$entityManager->flush();
|
|
|
|
|
|
- return $this->redirectToRoute('app_view', ['slug' => $article->getSlug()], Response::HTTP_SEE_OTHER);
|
|
|
+ return $this->redirectToRoute('app_article_show', ['id' => $article->getId()], Response::HTTP_SEE_OTHER);
|
|
|
}
|
|
|
|
|
|
return $this->render('article/new.html.twig', [
|
|
@@ -106,7 +106,7 @@ final class ArticleController extends AbstractController
|
|
|
|
|
|
$entityManager->flush();
|
|
|
|
|
|
- return $this->redirectToRoute('app_view', ['slug' => $article->getSlug()], Response::HTTP_SEE_OTHER);
|
|
|
+ return $this->redirectToRoute('app_article_show', ['id' => $article->getId()], Response::HTTP_SEE_OTHER);
|
|
|
}
|
|
|
|
|
|
return $this->render('article/edit.html.twig', [
|