From d500a3ec79aadbdd976c7448dc86f4d981140679 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Tue, 5 Sep 2023 16:35:23 +0200
Subject: [PATCH] fix #1236

---
 app/views/admin/communication/websites/pages/show.html.erb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app/views/admin/communication/websites/pages/show.html.erb b/app/views/admin/communication/websites/pages/show.html.erb
index d03a5465f..9c7b4121a 100644
--- a/app/views/admin/communication/websites/pages/show.html.erb
+++ b/app/views/admin/communication/websites/pages/show.html.erb
@@ -41,6 +41,10 @@
               target: :_blank,
               class: 'btn btn-light btn-xs' if @page.published %>
   <%= preview_link %>
-  <%= edit_link @page %>
+  <%= link_to t('edit'), 
+              edit_admin_communication_website_page_path(@page), 
+              class: button_classes 
+              # This is not edit_link @page because of the polymorphism of the special pages, which would create a wrong path 
+              %>
   <%= publish_link @page %>
 <% end %>
-- 
GitLab