manager: use administrate helper to retrieve resource path

This is lifted from the current default template provided by
administrate.
This commit is contained in:
Pierre de La Morinerie 2021-05-06 11:11:04 +02:00
parent b39b43179d
commit dc33f4a395

View file

@ -16,7 +16,7 @@ as defined by the routes in the `admin/` namespace
<%= link_to(
display_resource_name(resource),
[namespace, resource.path],
resource_index_route(resource),
class: "navigation__link navigation__link--#{nav_link_state(resource)}"
) %>
<% end %>