diff --git a/app/views/locations/toggle_active.html.erb b/app/views/locations/toggle_active.html.erb index ba3fa22e6..96cda6daa 100644 --- a/app/views/locations/toggle_active.html.erb +++ b/app/views/locations/toggle_active.html.erb @@ -4,7 +4,7 @@ <% content_for :before_content do %> <%= govuk_back_link( text: "Back", - href: "/schemes/#{@location.scheme.id}/locations/#{@location.id}", + href: scheme_location_path(scheme_id: @location.scheme.id, id: @location.id), ) %> <% end %>