From c740949f7c88c2aa531c2d707ee5291276e3d682 Mon Sep 17 00:00:00 2001
From: mdecimus <mauro@stalw.art>
Date: Fri, 27 Sep 2024 16:23:38 +0200
Subject: [PATCH] Include account name in undelete pages (fixes
 stalwartlabs/mail-server#808)

---
 src/pages/enterprise/undelete.rs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/pages/enterprise/undelete.rs b/src/pages/enterprise/undelete.rs
index 9bcd622..96a5532 100644
--- a/src/pages/enterprise/undelete.rs
+++ b/src/pages/enterprise/undelete.rs
@@ -369,6 +369,13 @@ pub fn UndeleteList() -> impl IntoView {
                             on_page_change=move |page: u32| {
                                 use_navigate()(
                                     &UrlBuilder::new("/manage/undelete")
+                                        .with_subpath(
+                                            params
+                                                .get()
+                                                .get("id")
+                                                .map(|s| s.as_str())
+                                                .unwrap_or_default(),
+                                        )
                                         .with_parameter("page", page.to_string())
                                         .finish(),
                                     Default::default(),