From 9e50bcedd4de676ec03d5b13bc7c36dc02868bfd Mon Sep 17 00:00:00 2001 From: Arthur Campbell Date: Thu, 27 Apr 2023 12:52:03 +0100 Subject: [PATCH] correct minor bug to ensure that "Return to logs" link returns to the correct index page --- app/views/logs/csv_confirmation.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/logs/csv_confirmation.html.erb b/app/views/logs/csv_confirmation.html.erb index 90f90813c..01cae2e63 100644 --- a/app/views/logs/csv_confirmation.html.erb +++ b/app/views/logs/csv_confirmation.html.erb @@ -9,7 +9,8 @@

Open your email inbox and click the link to download your CSV file.

- <%= govuk_link_to "Return to logs", lettings_logs_path %> + <% logs_path = controller.class.name.start_with?("Lettings") ? lettings_logs_path : sales_logs_path %> + <%= govuk_link_to "Return to logs", logs_path %>