From f9fea5ebe29783ba83ebcedc79931a40500acd6e Mon Sep 17 00:00:00 2001
From: ElectricMaxxx <maximilian.berghoff@gmx.de>
Date: Tue, 13 Dec 2016 06:35:23 +0100
Subject: [PATCH] fix issues due to hints

---
 app/Resources/views/error/index.html.twig   | 12 +++++++++++-
 app/Resources/views/sitemap/index.html.twig |  2 +-
 app/config/config.yml                       |  6 +++---
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/app/Resources/views/error/index.html.twig b/app/Resources/views/error/index.html.twig
index 29bc871c..55297007 100644
--- a/app/Resources/views/error/index.html.twig
+++ b/app/Resources/views/error/index.html.twig
@@ -1,4 +1,4 @@
-{% extends '::base.html.twig' %}
+{% extends 'base.html.twig' %}
 
 {% block content %}
     <h1>Oops! An Error Occurred</h1>
@@ -18,7 +18,17 @@
     {{ exception.getMessage() }}
 
     <h3>Suggested pages</h3>
+    <div class="alert  alert-info  clearfix">
+        <p>
+            This page is rendered by the
+            <code>SuggestionProviderController</code>
+            of the CmfSeoBundle. This way, usefull suggestions can be shown to your users.
+        </p>
 
+        <a class="docref" href="http://symfony.com/doc/current/cmf/bundles/seo/error_pages.html">
+            <i class="glyphicon glyphicon-chevron-right"></i>Read about this feature in the CMF documentation.
+        </a>
+    </div>
     {% for group, list in best_matches if list is not empty %}
         <h4>{{ group|capitalize }}</h4>
         <ul>
diff --git a/app/Resources/views/sitemap/index.html.twig b/app/Resources/views/sitemap/index.html.twig
index cb217f35..0aa0f21f 100644
--- a/app/Resources/views/sitemap/index.html.twig
+++ b/app/Resources/views/sitemap/index.html.twig
@@ -1,4 +1,4 @@
-{% extends '::base.html.twig' %}
+{% extends 'base.html.twig' %}
 
 {% block content %}
     <h1>Sitemap</h1>
diff --git a/app/config/config.yml b/app/config/config.yml
index 3fa53d6f..1a0a9820 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -117,15 +117,15 @@ cmf_seo:
          enable_parent_provider: true
          enable_sibling_provider: true
          templates:
-             html: ":error:index.html.twig"
+             html: ":error/index.html.twig"
          exclusion_rules:
              - { path: 'excluded' }
     sitemap:
          defaults:
              default_change_frequency: never
              templates:
-                 xml: ':sitemap:index.xml.twig'
-                 html: ':sitemap:index.html.twig'
+                 xml: ':sitemap/index.xml.twig'
+                 html: ':sitemap/index.html.twig'
          configurations:
              sitemap: ~
              frequent: