diff --git a/app/views/schemes/locations.html.erb b/app/views/schemes/locations.html.erb index 3c47cbe5f..916c862e8 100644 --- a/app/views/schemes/locations.html.erb +++ b/app/views/schemes/locations.html.erb @@ -1,7 +1,7 @@ <% title = @scheme.service_name %> <% content_for :title, title %> -<%= govuk_back_link(href: "#{request.referrer}")%> +<%= govuk_back_link(href: request.referer.to_s) %> <%= 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 688cafbc0..c2ab734cc 100644 --- a/app/views/schemes/show.html.erb +++ b/app/views/schemes/show.html.erb @@ -1,7 +1,7 @@ <% title = @scheme.service_name %> <% content_for :title, title %> -<%= govuk_back_link(href: "#{request.referrer}")%> +<%= govuk_back_link(href: request.referer.to_s) %> <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %>