]> Raphaël G. Git Repositories - blogbundle/blobdiff - Controller/KeywordController.php
Rename rapsys_blog route to rapsysblog
[blogbundle] / Controller / KeywordController.php
index d4649a04e0f8e33428e2130938bdb20c579ac4d0..b0c9eb2e594fa4e07a8efe9c27c3625669b5870c 100644 (file)
@@ -98,7 +98,7 @@ class KeywordController extends AbstractController {
                );
 
                //Set title
-               $this->context['title'] = $this->translator->trans('Keywords list');
+               $this->context['title']['page'] = $this->translator->trans('Keywords list');
 
                //Set description
                $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary keyword listing');
@@ -127,7 +127,7 @@ class KeywordController extends AbstractController {
                //With invalid slug
                if ($slug !== $this->context['keyword']['slug']) {
                        //Redirect on correctly spelled keyword
-                       return $this->redirectToRoute('rapsys_blog_keyword_view', ['id' => $this->context['keyword']['id'], 'slug' => $this->context['keyword']['slug']], Response::HTTP_MOVED_PERMANENTLY);
+                       return $this->redirectToRoute('rapsysblog_keyword_view', ['id' => $this->context['keyword']['id'], 'slug' => $this->context['keyword']['slug']], Response::HTTP_MOVED_PERMANENTLY);
                }
 
                //Set modified
@@ -191,7 +191,7 @@ class KeywordController extends AbstractController {
                );
 
                //Set title
-               $this->context['title'] = $this->context['keyword']['title'];
+               $this->context['title']['page'] = $this->context['keyword']['title'];
 
                //Set description
                $this->context['description'] = $this->context['keyword']['description'];