Skip to content

Commit f9fea5e

Browse files
committed
fix issues due to hints
1 parent 11714cb commit f9fea5e

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

app/Resources/views/error/index.html.twig

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends '::base.html.twig' %}
1+
{% extends 'base.html.twig' %}
22

33
{% block content %}
44
<h1>Oops! An Error Occurred</h1>
@@ -18,7 +18,17 @@
1818
{{ exception.getMessage() }}
1919

2020
<h3>Suggested pages</h3>
21+
<div class="alert alert-info clearfix">
22+
<p>
23+
This page is rendered by the
24+
<code>SuggestionProviderController</code>
25+
of the CmfSeoBundle. This way, usefull suggestions can be shown to your users.
26+
</p>
2127

28+
<a class="docref" href="http://symfony.com/doc/current/cmf/bundles/seo/error_pages.html">
29+
<i class="glyphicon glyphicon-chevron-right"></i>Read about this feature in the CMF documentation.
30+
</a>
31+
</div>
2232
{% for group, list in best_matches if list is not empty %}
2333
<h4>{{ group|capitalize }}</h4>
2434
<ul>

app/Resources/views/sitemap/index.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends '::base.html.twig' %}
1+
{% extends 'base.html.twig' %}
22

33
{% block content %}
44
<h1>Sitemap</h1>

app/config/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ cmf_seo:
117117
enable_parent_provider: true
118118
enable_sibling_provider: true
119119
templates:
120-
html: ":error:index.html.twig"
120+
html: ":error/index.html.twig"
121121
exclusion_rules:
122122
- { path: 'excluded' }
123123
sitemap:
124124
defaults:
125125
default_change_frequency: never
126126
templates:
127-
xml: ':sitemap:index.xml.twig'
128-
html: ':sitemap:index.html.twig'
127+
xml: ':sitemap/index.xml.twig'
128+
html: ':sitemap/index.html.twig'
129129
configurations:
130130
sitemap: ~
131131
frequent:

0 commit comments

Comments
 (0)