Skip to content

Commit

Permalink
Merge pull request #623 from DFE-Digital/SFSW-2808-Remove-go-to-secti…
Browse files Browse the repository at this point in the history
…on-link-for-final-section-of-pathway

fix: no link to section on final section on module index
  • Loading branch information
Maria-C1 authored Jan 28, 2025
2 parents 59eeb7c + c444263 commit 03b107d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
}
@displayText <span class="module-section--pages">(@moduleSection.Pages?.Count @modulePagesText)</span>
</h4>
<a href="/@moduleSection.Pages?[0].Id" class="section-nav-link govuk-link" data-track-label="">Go to this section</a>
@if(moduleSection != Model.PathwaysModule.Sections[Model.PathwaysModule.Sections.Count - 1])
{
<a href="/@moduleSection.Pages?[0].Id" class="section-nav-link govuk-link" data-track-label="">Go to this section</a>
}
</div>
<p class="govuk-body">@moduleSection.Summary</p>
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible">
Expand Down

0 comments on commit 03b107d

Please sign in to comment.