From b8c0880273a0e4564d74a7432492795b0039bba1 Mon Sep 17 00:00:00 2001
From: Rohan Shaw <rohnsha0@gmail.com>
Date: Sat, 17 Aug 2024 08:14:37 +0530
Subject: [PATCH 1/3] Fixes plone-pat-modal redirection issue after changing
 state from content menu

---
 news/3989.bugfix              | 1 +
 plone/app/contentmenu/menu.py | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 news/3989.bugfix

diff --git a/news/3989.bugfix b/news/3989.bugfix
new file mode 100644
index 0000000..f484a17
--- /dev/null
+++ b/news/3989.bugfix
@@ -0,0 +1 @@
+Fixes plone-pat-modal redirection issue after changing state from content menu [rohnsha0]
\ No newline at end of file
diff --git a/plone/app/contentmenu/menu.py b/plone/app/contentmenu/menu.py
index e8c1e5f..d916597 100644
--- a/plone/app/contentmenu/menu.py
+++ b/plone/app/contentmenu/menu.py
@@ -896,6 +896,7 @@ def getMenuItems(self, context, request):
                         "modal": json.dumps(
                             {
                                 "modalSizeClass": "modal-xl",
+                                "actionOptions": {"redirectOnResponse": True}
                             }
                         ),
                     },

From 068b692db779233df96b490ac2c4bf9bdbea7744 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
 <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Sat, 17 Aug 2024 02:48:21 +0000
Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
---
 plone/app/contentmenu/menu.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plone/app/contentmenu/menu.py b/plone/app/contentmenu/menu.py
index d916597..ce626e4 100644
--- a/plone/app/contentmenu/menu.py
+++ b/plone/app/contentmenu/menu.py
@@ -896,7 +896,7 @@ def getMenuItems(self, context, request):
                         "modal": json.dumps(
                             {
                                 "modalSizeClass": "modal-xl",
-                                "actionOptions": {"redirectOnResponse": True}
+                                "actionOptions": {"redirectOnResponse": True},
                             }
                         ),
                     },

From 4d1488934a408c98d6157d2324a573e394be2e0b Mon Sep 17 00:00:00 2001
From: Rohan Shaw <86848116+rohnsha0@users.noreply.github.com>
Date: Mon, 19 Aug 2024 12:24:52 +0530
Subject: [PATCH 3/3] Update news/3989.bugfix

Co-authored-by: Peter Mathis <petschki@users.noreply.github.com>
---
 news/3989.bugfix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/news/3989.bugfix b/news/3989.bugfix
index f484a17..7763b0e 100644
--- a/news/3989.bugfix
+++ b/news/3989.bugfix
@@ -1 +1 @@
-Fixes plone-pat-modal redirection issue after changing state from content menu [rohnsha0]
\ No newline at end of file
+Fixes pat-plone-modal redirection issue after changing state from content menu [rohnsha0]
\ No newline at end of file