diff --git a/app/helpers/tasklist_helper.rb b/app/helpers/tasklist_helper.rb index a6935f620..148f2f1e7 100644 --- a/app/helpers/tasklist_helper.rb +++ b/app/helpers/tasklist_helper.rb @@ -35,11 +35,11 @@ module TasklistHelper end def subsection_link(subsection, case_log) - next_page_path = if subsection.status(case_log) != :cannot_start_yet - first_page_or_check_answers(subsection, case_log) - else - "#" - end - govuk_link_to(subsection.label, next_page_path.to_s.dasherize, class: "task-name") + if subsection.status(case_log) != :cannot_start_yet + next_page_path = first_page_or_check_answers(subsection, case_log).to_s + govuk_link_to(subsection.label, next_page_path.dasherize, aria: { describedby: subsection.id.dasherize }) + else + subsection.label + end end end diff --git a/app/views/case_logs/_tasklist.html.erb b/app/views/case_logs/_tasklist.html.erb index 6765d6f82..85a8d6349 100644 --- a/app/views/case_logs/_tasklist.html.erb +++ b/app/views/case_logs/_tasklist.html.erb @@ -8,10 +8,13 @@