diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f46b4e4c..58c996c5 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -20,7 +20,7 @@ class ApplicationController < ActionController::Base helper_method :admin? def after_sign_in_path_for(resource) - sign_in_url = url_for(action: 'new', controller: 'sessions', only_path: false, protocol: 'https') + sign_in_url = url_for(action: 'new', controller: 'sessions', only_path: false) if request.referer == sign_in_url super