Skip to content

Commit

Permalink
Fix mastodon#6526: Only store redirect location if not in JSON format (
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Feb 21, 2018
1 parent 90f12f2 commit d8bc64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def https_enabled?
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!
Expand Down

0 comments on commit d8bc64b

Please sign in to comment.