Correctly Set noindex,nofollow On /diff Pages
None of them should be indexed. Make sure that happens.
This commit is contained in:
parent
8cf26c9249
commit
28cf501166
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ class ApplicationController < ActionController::Base
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def set_robots_metatag
|
def set_robots_metatag
|
||||||
if controller_name == 'wiki' and %w(show published).include? action_name
|
if controller_name == 'wiki' and %w(show published s5).include? action_name and !(params[:mode] == 'diff')
|
||||||
@robots_metatag_value = 'index,follow'
|
@robots_metatag_value = 'index,follow'
|
||||||
else
|
else
|
||||||
@robots_metatag_value = 'noindex,nofollow'
|
@robots_metatag_value = 'noindex,nofollow'
|
||||||
|
|
Loading…
Reference in a new issue