From 78b5afa011222b3abffb1207da991494d5253589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Mon, 2 May 2022 12:00:47 +0200 Subject: [PATCH] update special page updates permalinks + orgas permalinks --- app/models/communication/website/page.rb | 1 + .../communication/website/configs/permalinks/static.html.erb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index a6446e5da..4f6d3b66d 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 ea940c613..87e03483a 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 %> -- GitLab