From 7b7a2292c36c4fe2acfdefd884d8358673949653 Mon Sep 17 00:00:00 2001 From: pabois <pierreandre.boissinot@noesya.coop> Date: Mon, 20 Jun 2022 17:53:39 +0200 Subject: [PATCH] close #445 --- app/models/communication/website/post.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index 36afef23a..24678998b 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 -- GitLab