diff --git a/app/helpers/filters_helper.rb b/app/helpers/filters_helper.rb index 91038dbc9..70eef2435 100644 --- a/app/helpers/filters_helper.rb +++ b/app/helpers/filters_helper.rb @@ -132,7 +132,7 @@ module FiltersHelper end def user_lettings_path? - request.path == "/lettings-logs" + request.path == lettings_logs_path end def user_or_org_lettings_path? diff --git a/app/views/organisations/index.html.erb b/app/views/organisations/index.html.erb index 75a4d799c..72d1d2f43 100644 --- a/app/views/organisations/index.html.erb +++ b/app/views/organisations/index.html.erb @@ -3,7 +3,7 @@ <% content_for :title, title %> -<%= render partial: "organisations/headings", locals: request.path == "/organisations" ? { main: "Organisations", sub: nil } : { main: @organisation.name, sub: "Organisations" } %> +<%= render partial: "organisations/headings", locals: request.path == organisations_path ? { main: "Organisations", sub: nil } : { main: @organisation.name, sub: "Organisations" } %> <% if current_user.support? %> <%= govuk_button_link_to "Create a new organisation", new_organisation_path, html: { method: :get } %>