From 263c3b6140f4f56f150fea02a64d284ebe1159c6 Mon Sep 17 00:00:00 2001 From: Biruk Haileye Tabor Date: Wed, 7 Jul 2021 19:21:25 +0300 Subject: [PATCH] spree backend user session fallback root_path to admin_path --- .../backend/spree/admin/user_sessions_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/controllers/backend/spree/admin/user_sessions_controller.rb b/lib/controllers/backend/spree/admin/user_sessions_controller.rb index a5ec8c8e..986a14b2 100644 --- a/lib/controllers/backend/spree/admin/user_sessions_controller.rb +++ b/lib/controllers/backend/spree/admin/user_sessions_controller.rb @@ -34,6 +34,10 @@ def authorization_failure return redirect_to spree.admin_login_path end + def root_path + Spree.admin_path + end + protected def translation_scope