diff --git a/app/views/schemes/locations.html.erb b/app/views/schemes/locations.html.erb index 4f85bec1c..1aaeaf8c5 100644 --- a/app/views/schemes/locations.html.erb +++ b/app/views/schemes/locations.html.erb @@ -2,7 +2,10 @@ <% content_for :title, title %> <% content_for :before_content do %> - <%= govuk_back_link(href: request.referer.to_s) %> + <%= govuk_back_link( + text: "Back", + href: "/schemes/#{@scheme.id}", + ) %> <% end %> <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %> diff --git a/app/views/schemes/show.html.erb b/app/views/schemes/show.html.erb index 561f986de..e9cbc909f 100644 --- a/app/views/schemes/show.html.erb +++ b/app/views/schemes/show.html.erb @@ -2,7 +2,10 @@ <% content_for :title, title %> <% content_for :before_content do %> - <%= govuk_back_link(href: request.referer.to_s) %> + <%= govuk_back_link( + text: "Back", + href: "/schemes", + ) %> <% end %> <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %>