forked from External/greenlight
Fixed issues with maintenance mode (#683)
This commit is contained in:
committed by
Jesus Federico
parent
d1e50f2ef6
commit
0b64acaecf
@ -197,6 +197,6 @@ class ApplicationController < ActionController::Base
|
||||
# Manually Handle errors when application is in readonly mode
|
||||
def handle_readonly_error
|
||||
flash.clear
|
||||
redirect_to request.referrer, flash: { alert: I18n.t("errors.maintenance.readonly") }
|
||||
redirect_to request.referrer || root_path, flash: { alert: I18n.t("errors.maintenance.readonly") }
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user