Skip to content
Snippets Groups Projects
Unverified Commit 78b5afa0 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

update special page updates permalinks + orgas permalinks

parent a358f095
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,7 @@ class Communication::Website::Page < ApplicationRecord
git_block_dependencies
dependencies += website.education_programs if kind_education_programs?
dependencies += [parent] if has_parent?
dependencies += [website.config_permalinks] if is_special_page?
dependencies
end
......
......@@ -7,6 +7,9 @@ categories: <%= @website.special_page(:communication_posts).path_without_lan
<% if @website.has_persons? %>
persons: <%= @website.special_page(:persons).path_without_language %>:slug/
<% end %>
<% if @website.has_organizations? %>
organizations: <%= @website.special_page(:organizations).path_without_language %>:slug/
<% end %>
<% if @website.has_authors? %>
authors: <%= @website.special_page(:persons).path_without_language %>:slug/<%= @website.special_page(:communication_posts).slug %>/
<% end %>
......
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