fixes #2300 search engine robots should not index/follow combined categories

This commit is contained in:
plegall
2024-12-31 16:14:15 +01:00
parent 547c8a9b94
commit a3833eab9b
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -613,6 +613,14 @@ elseif ('search'==$page['section'])
{
$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
}
elseif ('categories' == $page['section'])
{
if (isset($page['combined_categories']))
{
$page['meta_robots'] = array('noindex'=>1, 'nofollow'=>1);
}
}
if ( $filter['enabled'] )
{
$page['meta_robots']['noindex']=1;