Skip to content
Snippets Groups Projects
Unverified Commit d8bc64bb authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent 90f12f2e
No related branches found
No related tags found
No related merge requests found
......@@ -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!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment