From 1d88d1cfda2730793e96619cd4a717e871cf61a7 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Wed, 6 Dec 2023 15:38:31 +0000 Subject: [PATCH] feat: use correct scheme path --- app/views/locations/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb index 82cc4a0c9..5f07a9a62 100644 --- a/app/views/locations/index.html.erb +++ b/app/views/locations/index.html.erb @@ -10,7 +10,7 @@ }) %> <% else %> <% content_for :before_content do %> - <%= govuk_back_link(href: "/schemes/#{@scheme.id}") %> + <%= govuk_back_link(href: scheme_path(@scheme)) %> <% end %> <% end %>