diff --git a/app/views/organisation_relationships/housing_providers.html.erb b/app/views/organisation_relationships/housing_providers.html.erb index 31b4afb54..4edf863aa 100644 --- a/app/views/organisation_relationships/housing_providers.html.erb +++ b/app/views/organisation_relationships/housing_providers.html.erb @@ -12,9 +12,9 @@
This organisation does not currently have any housing providers.
<% end %> <% if current_user.support? %> - <%= govuk_button_link_to "Add a housing provider", add_housing_provider_organisation_path(organisation_id: @organisation.id), html: { method: :get } %> + <%= govuk_button_link_to "Add a housing provider", housing_providers_add_organisation_path(organisation_id: @organisation.id), html: { method: :get } %> <% elsif current_user.data_coordinator? %> - <%= govuk_button_link_to "Add a housing provider", add_housing_provider_organisation_path, html: { method: :get } %> + <%= govuk_button_link_to "Add a housing provider", housing_providers_add_organisation_path, html: { method: :get } %> <% end %> <% if @total_count != 0 %> <%= render SearchComponent.new(current_user:, search_label: "Search for a housing provider", value: @searched) %> diff --git a/config/routes.rb b/config/routes.rb index ef447b426..bb2252a4e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -80,7 +80,7 @@ Rails.application.routes.draw do get "logs/csv-confirmation", to: "lettings_logs#csv_confirmation" get "schemes", to: "organisations#schemes" get "housing-providers", to: "organisation_relationships#housing_providers" - get "add-housing-provider", to: "organisation_relationships#add_housing_provider" + get "housing-providers/add", to: "organisation_relationships#add_housing_provider" end end