app/controllers/devise/registrations_controller.rb in devise-4.4.3 vs app/controllers/devise/registrations_controller.rb in devise-4.5.0
- old
+ new
@@ -110,10 +110,10 @@
end
# 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
# this method in your own RegistrationsController.
def after_inactive_sign_up_path_for(resource)