From 9abe625556543ae05ced7178d4cf66f903e7f6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Mon, 5 Dec 2022 15:24:54 +0100 Subject: [PATCH] fix --- app/models/communication/website/permalink.rb | 2 +- app/models/communication/website/permalink/category.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/communication/website/permalink.rb b/app/models/communication/website/permalink.rb index fb5d865d0..0a651dfaf 100644 --- a/app/models/communication/website/permalink.rb +++ b/app/models/communication/website/permalink.rb @@ -51,7 +51,7 @@ class Communication::Website::Permalink < ApplicationRecord scope :not_current, -> { where(is_current: false) } def self.config_in_website(website) - required_kinds_in_website.map { |permalink_class| + required_kinds_in_website(website).map { |permalink_class| [permalink_class.static_config_key, permalink_class.pattern_in_website(website)] }.to_h end diff --git a/app/models/communication/website/permalink/category.rb b/app/models/communication/website/permalink/category.rb index 7576a37b3..8e63df80b 100644 --- a/app/models/communication/website/permalink/category.rb +++ b/app/models/communication/website/permalink/category.rb @@ -13,6 +13,10 @@ class Communication::Website::Permalink::Category < Communication::Website::Perm protected + def published? + true + end + def substitutions { slug: about.path -- GitLab