If ReCaptcha thinks you are a spammer, error 500 now takes you to about (could be a diff page) - noted in #7

This commit is contained in:
Jonathan Rosenbaum 2026-02-01 01:18:34 +00:00
parent 23b4732c0c
commit 5106ac16b9

View File

@ -324,6 +324,9 @@ class ApplicationController < BaseController
end end
def error_500(exception = nil) def error_500(exception = nil)
return if response_body.present?
return if response.committed?
@page_title = 'page_titles.500.An_Error_Occurred' @page_title = 'page_titles.500.An_Error_Occurred'
@main_title = 'error.500.title' @main_title = 'error.500.title'
@original_params = params.clone @original_params = params.clone