diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb index b88ca74e7..82cc4a0c9 100644 --- a/app/views/locations/index.html.erb +++ b/app/views/locations/index.html.erb @@ -2,10 +2,16 @@ <% title = format_title(@searched, @scheme.service_name, current_user, item_label, @pagy.count, nil) %> <% content_for :title, title %> -<% content_for :before_content do %> - <%= govuk_back_link( - href: "/schemes/#{@scheme.id}", - ) %> +<% if current_user.support? %> + <% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { + "Schemes (#{@scheme.owning_organisation.name})" => schemes_organisation_path(@scheme.owning_organisation), + content_for(:title) => scheme_path(@scheme), + "Locations" => "", + }) %> +<% else %> + <% content_for :before_content do %> + <%= govuk_back_link(href: "/schemes/#{@scheme.id}") %> + <% end %> <% end %> <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %>