From 28cf501166d13bc9d66080ab1bf47e72bd6a52dc Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Mon, 24 Aug 2009 17:42:34 -0500 Subject: [PATCH] Correctly Set noindex,nofollow On /diff Pages None of them should be indexed. Make sure that happens. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 259e0478..c464969e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -196,7 +196,7 @@ class ApplicationController < ActionController::Base protected 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' else @robots_metatag_value = 'noindex,nofollow'