diff --git a/app/views/admin/communication/websites/pages/show.html.erb b/app/views/admin/communication/websites/pages/show.html.erb index b9567db98f15316d88b9090a62ac0e040ba62bd8..69e10e49220d48b555b62c38f50357be7a4aac9a 100644 --- a/app/views/admin/communication/websites/pages/show.html.erb +++ b/app/views/admin/communication/websites/pages/show.html.erb @@ -49,7 +49,7 @@ <%= link_to t('admin.communication.website.publish.button'), publish_admin_communication_website_page_path(@page), class: button_classes, - method: :post unless @page.published if can?(:publish, @page) + method: :post if !@page.published && can?(:publish, @page) # This is not edit_link @page because of the polymorphism of the special pages, which would create a wrong path %> <% end %>