about summary refs log tree commit diff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-02-22 00:51:30 +0100
committerGitHub <noreply@github.com>2018-02-22 00:51:30 +0100
commitd8bc64bb09750b9e47c1ea1bb502e88a8dd676d5 (patch)
treef04f20e6499b5669a4e0a6b3a76e5c4205344fb7 /app/controllers/application_controller.rb
parent90f12f2e5a41115a9a756f9dd38054736080d4f9 (diff)
Fix #6526: Only store redirect location if not in JSON format (#6528)
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index b38a68467..17c9dade8 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -35,7 +35,7 @@ class ApplicationController < ActionController::Base
   end
 
   def store_current_location
-    store_location_for(:user, request.url)
+    store_location_for(:user, request.url) unless request.format == :json
   end
 
   def require_admin!