Browse Source

correct minor bug to ensure that "Return to logs" link returns to the correct index page

pull/1568/head
Arthur Campbell 3 years ago
parent
commit
9e50bcedd4
  1. 3
      app/views/logs/csv_confirmation.html.erb

3
app/views/logs/csv_confirmation.html.erb

@ -9,7 +9,8 @@
<p class="govuk-body">Open your email inbox and click the link to download your CSV file.</p> <p class="govuk-body">Open your email inbox and click the link to download your CSV file.</p>
<p class="govuk-body"> <p class="govuk-body">
<%= 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 %>
</p> </p>
</div> </div>
</div> </div>

Loading…
Cancel
Save