From 07cc093b0521a935679f7878c05d85706adf6816 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Thu, 6 Jun 2024 18:39:10 +0200
Subject: [PATCH] fix permalink orga/person categories (#1996)

* fix permalink orga/person categories

* comment
---
 .../communication/website/permalink/organization/category.rb  | 4 ++--
 app/models/communication/website/permalink/person/category.rb | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/models/communication/website/permalink/organization/category.rb b/app/models/communication/website/permalink/organization/category.rb
index ef5fb6ec2..fd2a47c14 100644
--- a/app/models/communication/website/permalink/organization/category.rb
+++ b/app/models/communication/website/permalink/organization/category.rb
@@ -7,9 +7,9 @@ class Communication::Website::Permalink::Organization::Category < Communication:
     :organizations_categories
   end
 
-  # /organisations/:slug/
+  # /organisations/categories/:slug/
   def self.pattern_in_website(website, language)
-    "/#{slug_with_ancestors(website, language)}/:slug/"
+    "/#{slug_with_ancestors(website, language)}/categories/:slug/"
   end
 
   def self.special_page_type
diff --git a/app/models/communication/website/permalink/person/category.rb b/app/models/communication/website/permalink/person/category.rb
index 7b4b2ef0e..9d56a2e88 100644
--- a/app/models/communication/website/permalink/person/category.rb
+++ b/app/models/communication/website/permalink/person/category.rb
@@ -7,9 +7,9 @@ class Communication::Website::Permalink::Person::Category < Communication::Websi
     :persons_categories
   end
 
-  # /equipe/:slug/
+  # /equipe/categories/:slug/
   def self.pattern_in_website(website, language)
-    "/#{slug_with_ancestors(website, language)}/:slug/"
+    "/#{slug_with_ancestors(website, language)}/categories/:slug/"
   end
 
   def self.special_page_type
-- 
GitLab