After registration, which needs confirmation, my app redirects to an authenticated page so authentication fails and Devise redirects to the login path.
My flash message after registration is lost because of the second redirect.
Is there somewhere I can add a flash.keep before redirecting to the login path, in application_controller.rb or in a helper? I'd prefer not to override a devise controller for this if there's an alternative.