diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index 3a50caa01ac86b45715c2bcab5758b8e42a0d29b..19e53da359d560c252a2ca18ef1cba09e08ebb49 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -137,6 +137,7 @@ class Communication::Website::Post < ApplicationRecord return unless published return if website.url.blank? return if website.special_page(:communication_posts)&.path.blank? + return if current_permalink_in_website(website).blank? Static.clean_path "#{website.url}#{current_permalink_in_website(website).path}" end