diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index 1c2838ed8b6169547f007ade72c4c48cdcaedadf..e81056ab8e7f3ef8cb8ed10b115401719048f1db 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -138,7 +138,7 @@ class Communication::Website::Post < ApplicationRecord return if website.url.blank? return if website.special_page(Communication::Website::Page::CommunicationPost)&.path.blank? return if current_permalink_in_website(website).blank? - Static.clean_path "#{website.url}#{current_permalink_in_website(website).path}" + "#{Static.remove_trailing_slash website.url}#{Static.clean_path current_permalink_in_website(website).path}" end def to_s