mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix redirect
This commit is contained in:
1 parent
8ed2883504
commit
6f4527038b
1 file changed
+1
-1
@@ -30,7 +30,7 @@ class ApplicationController < ActionController::Base
|
||||
rescue_from RateLimit::LimitApproached do |e|
|
||||
Rollbar.error(e) if defined?(Rollbar)
|
||||
|
||||
redirect_to request.referer, alert: 'Too many requests', status: :too_many_requests
|
||||
redirect_back_or_to root_path, alert: 'Too many requests'
|
||||
end
|
||||
|
||||
if Rails.env.production? || Rails.env.test?
|
||||
|
||||
Reference in new issue
Block a user