From 6f4527038b8fa01b00428db5176c2d841e4c9d93 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 23 Aug 2026 17:38:17 +0300 Subject: [PATCH] fix redirect --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 592c006d..12bc306f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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?