From 251986eeab5c5dd06b584a5e5d7612ac7d52ecaa Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 11 Nov 2022 09:33:20 +0000 Subject: [PATCH] update a path --- app/views/locations/toggle_active.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %>