From 6a8295ffef40e3a88d99a8cb783874c9606a8da8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Thu, 19 Jan 2023 11:56:42 +0100
Subject: [PATCH] fix

---
 app/models/communication/website/post.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb
index 1c2838ed8..e81056ab8 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
-- 
GitLab