X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/593afd90a9047fb444154b5544378386854bf87f..27cb2d1871b492f7360a12858ed3364f7557265a:/Controller/ArticleController.php diff --git a/Controller/ArticleController.php b/Controller/ArticleController.php index 9cdb247..68e3216 100644 --- a/Controller/ArticleController.php +++ b/Controller/ArticleController.php @@ -104,7 +104,7 @@ class ArticleController extends AbstractController { ); //Set title - $this->context['title'] = $this->translator->trans('Articles list'); + $this->context['title']['page'] = $this->translator->trans('Articles list'); //Set description $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary article listing'); @@ -133,7 +133,7 @@ class ArticleController extends AbstractController { //With invalid slug if ($slug !== $this->context['article']['slug']) { //Redirect on correctly spelled article - return $this->redirectToRoute('rapsys_blog_article_view', ['id' => $this->context['article']['id'], 'slug' => $this->context['article']['slug']], Response::HTTP_MOVED_PERMANENTLY); + return $this->redirectToRoute('rapsysblog_article_view', ['id' => $this->context['article']['id'], 'slug' => $this->context['article']['slug']], Response::HTTP_MOVED_PERMANENTLY); } //Set modified @@ -194,7 +194,7 @@ class ArticleController extends AbstractController { ); //Set title - $this->context['title'] = $this->context['article']['title']; + $this->context['title']['page'] = $this->context['article']['title']; //Set description $this->context['description'] = $this->context['article']['description'];