Fix #6526: Only store redirect location if not in JSON format (#6528)

master
Eugen Rochko 7 years ago committed by GitHub
parent 90f12f2e5a
commit d8bc64bb09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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!

Loading…
Cancel
Save