From acc45c5a44c45b252ccba65fd169a45af73ff369 Mon Sep 17 00:00:00 2001 From: Isaac Orme Date: Thu, 2 Aug 2018 07:02:50 -0700 Subject: [PATCH] issue 4356 adds is_navigational_format? check to after_sign_up_path_for (#4833) --- 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 0c1e8764..c79ce56e 100644 --- a/app/controllers/devise/registrations_controller.rb +++ b/app/controllers/devise/registrations_controller.rb @@ -112,7 +112,7 @@ class Devise::RegistrationsController < DeviseController # 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