From ba48899a64bea06d15424f13951cc8621e6d7a4a Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Tue, 16 Aug 2016 19:29:32 +0800 Subject: [PATCH] fix login redirect loop - fixes #602 --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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