diff --git a/core/lib/refinery/application_controller.rb b/core/lib/refinery/application_controller.rb index daf4347c06..db50738723 100644 --- a/core/lib/refinery/application_controller.rb +++ b/core/lib/refinery/application_controller.rb @@ -31,8 +31,7 @@ def error_404(exception = nil) # fallback to the default 404.html page. file = Rails.root.join 'public', '404.html' file = Refinery.roots('refinery/core').join('public', '404.html') unless file.exist? - render file: file.cleanpath.to_s.gsub(%r{#{file.extname}$}, ''), - layout: false, status: 404, format: :html + render file: file, format: :html, layout: false, status: 404 return false end