add canonical for individual pages. unfortunately we cannot link to correct page
This commit is contained in:
parent
fa33348bac
commit
fb3525c88e
2 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,7 @@ class Markdown extends \Parsedown
|
||||||
$config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true));
|
$config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true));
|
||||||
$config->set('HTML.TargetBlank', true);
|
$config->set('HTML.TargetBlank', true);
|
||||||
$config->set('HTML.Nofollow', true);
|
$config->set('HTML.Nofollow', true);
|
||||||
|
|
||||||
$purifier = new \HTMLPurifier($config);
|
$purifier = new \HTMLPurifier($config);
|
||||||
|
|
||||||
return $purifier->purify($html);
|
return $purifier->purify($html);
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
{% if currentPage != numPages %}
|
{% if currentPage != numPages %}
|
||||||
<link rel="next" href="{{ path_for('page', [], { 'page': nextPage }) }}"/>
|
<link rel="next" href="{{ path_for('page', [], { 'page': nextPage }) }}"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<link rel="canonical" href="https://github.com/matomo-org/matomo/issues/" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
Reference in a new issue