diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb index f81c2e141..311673bbc 100644 --- a/app/views/locations/index.html.erb +++ b/app/views/locations/index.html.erb @@ -49,7 +49,7 @@ <% end %> <% end %> <% end %> - <%= govuk_button_link_to "Add a location", new_scheme_location_path(scheme_id: @scheme.id), secondary: true %> + <%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %> @@ -105,7 +105,7 @@ <% end %> <% end %> <% end %> - <%= govuk_button_link_to "Add a location", new_scheme_location_path(scheme_id: @scheme.id), secondary: true %> + <%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %> <% end %>