diff --git a/app/controllers/integral/backend/base_controller.rb b/app/controllers/integral/backend/base_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/integral/backend/base_controller.rb
+++ b/app/controllers/integral/backend/base_controller.rb
@@ -167,8 +167,8 @@ module Integral
       end
 
       # Redirect user to integral dashboard after successful login
-      def after_sign_in_path_for(_resource)
-        integral.backend_dashboard_path
+      def after_sign_in_path_for(resource)
+        stored_location_for(resource) || integral.backend_dashboard_path
       end
 
       # Redirect user to integral dashboard after successful logout
Update devise to route logged in user to requested page after successful
login