diff --git a/app/views/admin/communication/websites/pages/_list.html.erb b/app/views/admin/communication/websites/pages/_list.html.erb index 48d81eaeb7096f05ff41387506f34abf0c4b0e54..3308680ab11a8fdf4fb26f43bdcc59854865eec9 100644 --- a/app/views/admin/communication/websites/pages/_list.html.erb +++ b/app/views/admin/communication/websites/pages/_list.html.erb @@ -14,7 +14,9 @@ <%= link_to page, admin_communication_website_page_path(website_id: page.website.id, id: page.id), class: "#{'draft' unless page.published?}" %> - <p class="small text-muted mb-0"><%= page.ancestors[1..-1].join(' / ') %></p> + <% if page.ancestors.many? %> + <p class="small text-muted mb-0"><%= page.ancestors.join(' / ') %></p> + <% end %> </td> <td> <% if page.featured_image.attached? && page.featured_image.representable? %>