From f6e60858359e11a4e1505eec8f8b836e558245c3 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 6 Apr 2023 17:32:36 +0100 Subject: [PATCH] feat: leave here to avoid possible loops --- app/views/devise/two_factor_authentication/resend.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/devise/two_factor_authentication/resend.html.erb b/app/views/devise/two_factor_authentication/resend.html.erb index b79158c3f..0c7cdd32a 100644 --- a/app/views/devise/two_factor_authentication/resend.html.erb +++ b/app/views/devise/two_factor_authentication/resend.html.erb @@ -1,7 +1,7 @@ <% content_for :title, "Resend security code" %> <% content_for :before_content do %> - <%= govuk_back_link(href: :back) %> + <%= govuk_back_link(href: "javascript:history.back()") %> <% end %> <%= form_with(url: send("resend_code_#{resource_name}_two_factor_authentication_path"), html: { method: :get }) do |f| %>