diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b1a66080..3e456b8f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1150,9 +1150,9 @@ class ApplicationController < ActionController::Base end def user_login_and_from_openi - url = request.referer.nil? ? Redmine::Configuration['educoder_domain'] : request.referer + url = request.original_url.nil? ? Redmine::Configuration['educoder_domain'] : request.original_url flag = URI(url).host == URI(Redmine::Configuration['openi_domain']).host && !current_user.logged? - logger.info "----------------------- request referer: #{request.referer} -------------------------" + logger.info "----------------------- request referer: #{request.original_url} -------------------------" logger.info "----------------------- url after processed: #{url} -------------------------" logger.info "----------------------- host: #{URI(url).host} --------------------------" logger.info "----------------------- handle_flag: #{flag} -------------------------"