1
0
Fork 0

add canonical for individual pages. unfortunately we cannot link to correct page

This commit is contained in:
Thomas Steur 2019-03-11 10:24:52 +13:00
parent fa33348bac
commit fb3525c88e
2 changed files with 3 additions and 1 deletions

View file

@ -60,7 +60,7 @@ class Markdown extends \Parsedown
$config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true));
$config->set('HTML.TargetBlank', true);
$config->set('HTML.Nofollow', true);
$purifier = new \HTMLPurifier($config);
return $purifier->purify($html);

View file

@ -9,6 +9,8 @@
{% if currentPage != numPages %}
<link rel="next" href="{{ path_for('page', [], { 'page': nextPage }) }}"/>
{% endif %}
<link rel="canonical" href="https://github.com/matomo-org/matomo/issues/" />
{% endblock %}
{% block content %}