mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +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:
@ -700,7 +700,7 @@ class ApplicationController < ActionController::Base
|
||||
@slug = params[:slug].class == String ? params[:slug] : ''
|
||||
@slug = (params[:id].class == String ? params[:id] : '') if @slug.blank?
|
||||
@slug.tr!('-', ' ')
|
||||
@hide_google = true if SiteSetting.login_required
|
||||
@hide_search = true if SiteSetting.login_required
|
||||
render_to_string status: status, layout: layout, formats: [:html], template: '/exceptions/not_found'
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user