diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index a6446e5da0db183f8f25e06a789c8d2d68c785b5..4f6d3b66d646ccc360971f7825a12a51027cceb8 100644 --- a/app/models/communication/website/page.rb +++ b/app/models/communication/website/page.rb @@ -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 diff --git a/app/views/admin/communication/website/configs/permalinks/static.html.erb b/app/views/admin/communication/website/configs/permalinks/static.html.erb index ea940c61321255d1a68a1ae7fc885a70290eddc9..87e03483a79d40ae9eb7b773232de10ccbc1edcb 100644 --- a/app/views/admin/communication/website/configs/permalinks/static.html.erb +++ b/app/views/admin/communication/website/configs/permalinks/static.html.erb @@ -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 %>