fixes #2218 avoid search engines to index search pages

This commit is contained in:
plegall 2024-09-03 21:05:44 +02:00
parent 40ca83d382
commit b6789d4de9
2 changed files with 3 additions and 3 deletions

View file

@ -611,7 +611,7 @@ elseif ('recent_cats'==$page['section'])
}
elseif ('search'==$page['section'])
{
$page['meta_robots']['nofollow']=1;
$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
}
if ( $filter['enabled'] )
{

View file

@ -14,7 +14,7 @@
<ul class="categoryActions">
{if isset($SEARCH_IN_SET_ACTION) and $SEARCH_IN_SET_ACTION}
{combine_css path="themes/default/vendor/fontello/css/gallery-icon.css" order=-10}
<li id="cmdSearchInSet"><a href="{$SEARCH_IN_SET_URL}" title="{'Search in this set'|translate}" class="pwg-state-default pwg-button">
<li id="cmdSearchInSet"><a href="{$SEARCH_IN_SET_URL}" title="{'Search in this set'|translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="gallery-icon-search-folder"></span><span class="pwg-button-text">{'Search in this set'|translate}</span>
</a></li>
{/if}
@ -160,7 +160,7 @@
{if isset($SEARCH_IN_SET_BUTTON) and $SEARCH_IN_SET_BUTTON}
<div class="mcs-side-results search-in-set-button">
<div>
<p><a href="{$SEARCH_IN_SET_URL}" class="gallery-icon-search-folder">{'Search in this set'|translate}</a></p>
<p><a href="{$SEARCH_IN_SET_URL}" class="gallery-icon-search-folder" rel="nofollow">{'Search in this set'|translate}</a></p>
</div>
</div>
{/if}