mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
get rid of nonsense 404.html
correct 404 handling for invalid pages
This commit is contained in:
@@ -21,7 +21,7 @@ class StaticController < ApplicationController
|
||||
return
|
||||
end
|
||||
|
||||
render file: 'public/404', layout: false, status: 404
|
||||
raise Discourse::NotFound
|
||||
end
|
||||
|
||||
# This method just redirects to a given url.
|
||||
|
||||
Reference in New Issue
Block a user