mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:01:14 +08:00
UX: Replace Google search with Discourse search on not found page
* UX: Replace Google search with Discourse search on not found page. * FIX: Update application_controller_spec.rb.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
class ExceptionsController < ApplicationController
|
||||
skip_before_action :check_xhr, :preload_json
|
||||
before_action :hide_google
|
||||
before_action :hide_search
|
||||
|
||||
def not_found
|
||||
# centralize all rendering of 404 into app controller
|
||||
@ -14,8 +14,8 @@ class ExceptionsController < ApplicationController
|
||||
|
||||
private
|
||||
|
||||
def hide_google
|
||||
@hide_google = true if SiteSetting.login_required
|
||||
def hide_search
|
||||
@hide_search = true if SiteSetting.login_required
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user