Browse Source

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

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
d8bc64bb09
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/application_controller.rb

+ 1
- 1
app/controllers/application_controller.rb 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!

Loading…
Cancel
Save