app/controllers/workarea/admin/impersonations_controller.rb in workarea-admin-3.4.40 vs app/controllers/workarea/admin/impersonations_controller.rb in workarea-admin-3.4.41
- old
+ new
@@ -25,10 +25,10 @@
previous_user_id = cookies.signed[:user_id]
stop_impersonation
self.current_order = nil
flash[:success] = t('workarea.admin.users.flash_messages.stopped')
- redirect_to user_path(previous_user_id)
+ redirect_back_or(user_path(previous_user_id))
end
end
end
end