mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:11:20 +08:00
Support 404 routes in the Ember App
This commit is contained in:
@ -6,4 +6,13 @@ class ExceptionsController < ApplicationController
|
||||
raise Discourse::NotFound
|
||||
end
|
||||
|
||||
# Give us an endpoint to use for 404 content in the ember app
|
||||
def not_found_body
|
||||
|
||||
# Don't show google search if it's embedded in the Ember app
|
||||
@hide_google = true
|
||||
|
||||
render text: build_not_found_page(200, false)
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user