From 454d1c5efa28e5a342a6b778bc3f0b9ae7dcd409 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 17 Jan 2022 12:16:33 +0100
Subject: [PATCH] fixed

---
 app/models/communication/website/menu/item.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/models/communication/website/menu/item.rb b/app/models/communication/website/menu/item.rb
index 707c9f7bf..11c7c01ef 100644
--- a/app/models/communication/website/menu/item.rb
+++ b/app/models/communication/website/menu/item.rb
@@ -77,7 +77,9 @@ class Communication::Website::Menu::Item < ApplicationRecord
     case self.kind
     when 'url'
       target = url
-    when 'page', 'news_article'
+    when 'page'
+      target = about.path if about&.published
+    when 'news_article'
       target = about.path if about&.published_at
     when 'programs'
       target = "/#{website.programs_github_directory}" if website.programs.any?
-- 
GitLab