(cp a3833eab9) fixes #2300 search engine robots should not index/follow combined categories

This commit is contained in:
plegall committed 2024-12-31 16:14:38 +01:00
1 parent e0acc59d22
commit 9f76b669c9
2 files changed
+10 -2

No files matched your search

+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;