From 5f0cf2424bd866665261eab0f668c11c2a7b063f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 1 Jan 2024 14:55:14 +0100
Subject: [PATCH] [skip ci] fix redirect on post category destroy

---
 .../admin/communication/websites/posts/categories_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/admin/communication/websites/posts/categories_controller.rb b/app/controllers/admin/communication/websites/posts/categories_controller.rb
index 209c45735..98cea917f 100644
--- a/app/controllers/admin/communication/websites/posts/categories_controller.rb
+++ b/app/controllers/admin/communication/websites/posts/categories_controller.rb
@@ -78,7 +78,7 @@ class Admin::Communication::Websites::Posts::CategoriesController < Admin::Commu
 
   def destroy
     @category.destroy
-    redirect_to admin_communication_website_categories_url, notice: t('admin.successfully_destroyed_html', model: @category.to_s)
+    redirect_to admin_communication_website_post_categories_url, notice: t('admin.successfully_destroyed_html', model: @category.to_s)
   end
 
   protected
-- 
GitLab