diff --git a/app/models/communication/website/permalink.rb b/app/models/communication/website/permalink.rb index b03ac7fa834c4d970992be9ca56bf1a58744c376..6af8082a3a55e6812abdc6712054f49a3d6c736a 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