Skip to content

Commit

Permalink
PR Change: use link_to
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGDS committed Oct 9, 2024
1 parent 3a0df14 commit c279322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/landing_page/blocks/_main_navigation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<% if link["active"] %>
<%= link["label"] %>
<% else %>
<a href="<%= link["link"]%>" class="govuk-link govuk-link--no-underline"><%= link["label"]%></a>
<%= link_to link["label"], link["link"], class: "govuk-link govuk-link--no-underline" %>
<% if link["children"] %>
<ul class="app-b-main-navigation__childlist">
<% link["children"].each do |child_link| %>
<li class="app-b-main-navigation__listitem">
<a href="<%= child_link["link"]%>" class="govuk-link govuk-link--no-underline"><%= child_link["label"]%></a>
<%= link_to child_link["label"], child_link["link"], class: "govuk-link govuk-link--no-underline" %>
</li>
<% end %>
</ul>
Expand Down

0 comments on commit c279322

Please sign in to comment.