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

signup-info-prompt
Eugen Rochko 2018-02-22 00:51:30 +01:00 committed by GitHub
parent 90f12f2e5a
commit d8bc64bb09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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!