From ab008321b51468ea0769ffbb03f6e35048d1e817 Mon Sep 17 00:00:00 2001 From: Isaac Orme Date: Wed, 4 Apr 2018 14:40:33 -0700 Subject: [PATCH] issue 4356 adds is_navigational_format? check to after_sign_up_path_for --- app/controllers/devise/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/devise/registrations_controller.rb b/app/controllers/devise/registrations_controller.rb index 0c1e876418..c79ce56ece 100644 --- a/app/controllers/devise/registrations_controller.rb +++ b/app/controllers/devise/registrations_controller.rb @@ -112,7 +112,7 @@ def sign_up(resource_name, resource) # The path used after sign up. You need to overwrite this method # in your own RegistrationsController. def after_sign_up_path_for(resource) - after_sign_in_path_for(resource) + after_sign_in_path_for(resource) if is_navigational_format? end # The path used after sign up for inactive accounts. You need to overwrite