From 03e98e617b2a86fe6ad204ddc12b25f601aaefe8 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Tue, 16 Aug 2016 20:03:22 +0800 Subject: [PATCH] fix login redirect loop - fixes #602 (#609) --- 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