diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index 36afef23a27755a38e6ccbdcde9d915da3642ce1..24678998b913d5362899f6247081381142d12936 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -136,6 +136,7 @@ class Communication::Website::Post < ApplicationRecord def url return unless published return if website.url.blank? + return if website.special_page(:communication_posts)&.path.blank? "#{website.url}#{website.special_page(:communication_posts).path}#{path}" end