diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4eb4820..d2b0bc4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -39,7 +39,7 @@ class ApplicationController < ActionController::Base end def after_sign_in_path_for(user) - session[:user_return_to] || root_path + session.delete(:user_return_to) || root_path end def lndhub_authenticate(options={})