Skip to content
Snippets Groups Projects
Unverified Commit 07cc093b authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

fix permalink orga/person categories (#1996)

* fix permalink orga/person categories

* comment
parent 3c1765ba
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment