From 29a9dee1cbb766633b6dcda0e8d0337a60321ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 10 Aug 2026 11:21:59 -0600 Subject: [PATCH] Consume user_return_to on sign-in --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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={})