diff --git a/app/models/communication/website/permalink.rb b/app/models/communication/website/permalink.rb index fb5d865d07ca52a38c1fc0db2840073083eed41e..0a651dfafeece5b4255392614e46f826f6c0a345 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 7576a37b398417cef81396440e5faaf2a1bd67db..8e63df80b05edc0edcacde35a3408914e08df1a1 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