diff --git a/app/controllers/exceptions_controller.rb b/app/controllers/exceptions_controller.rb index 1e28bef5e..d04c4214d 100644 --- a/app/controllers/exceptions_controller.rb +++ b/app/controllers/exceptions_controller.rb @@ -2,6 +2,8 @@ class ExceptionsController < ApplicationController skip_before_filter :check_xhr, :preload_json def not_found + @hide_google = true if SiteSetting.login_required + # centralize all rendering of 404 into app controller raise Discourse::NotFound end