diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index a6a5c4cdcc5d3cbecaaec209553360b972819f3a..3a50caa01ac86b45715c2bcab5758b8e42a0d29b 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -137,7 +137,7 @@ class Communication::Website::Post < ApplicationRecord 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}" + Static.clean_path "#{website.url}#{current_permalink_in_website(website).path}" end def to_s