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

This commit is contained in:
Eugen Rochko 2018-02-22 00:51:30 +01:00 committed by GitHub
parent 865c7e7178
commit eb5b1b45d9

View file

@ -35,7 +35,7 @@ class ApplicationController < ActionController::Base
end end
def store_current_location def store_current_location
store_location_for(:user, request.url) store_location_for(:user, request.url) unless request.format == :json
end end
def require_admin! def require_admin!