diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f6d84f0fdd1..494df9ba3c8 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -108,7 +108,7 @@ class ApplicationController < ActionController::Base # from the above rescue_from blocks will fail because that isn't valid json. render status: error, layout: false, text: (error == 404) ? build_not_found_page(error) : message else - render text: build_not_found_page(error, current_user ? 'application' : 'no_js') + render text: build_not_found_page(error, 'no_js') end end