Skip to content

Commit

Permalink
Adds base_path where title not present
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtrussler committed Feb 12, 2024
1 parent 3b66608 commit 6b4b952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content_items/manuals/_updates.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<% change_notes.each do |change_note_entry| %>
<% change_note = change_note_entry.flatten.last %>
<p class="govuk-body">
<%= link_to change_note["title"], change_note["base_path"], class: "govuk-link" %>
<%= link_to change_note["title"].present? ? change_note["title"] : change_note["base_path"], change_note["base_path"], class: "govuk-link" %>
</p>
<%= simple_format(change_note["change_note"], class: "govuk-body") %>
<% end %>
Expand Down

0 comments on commit 6b4b952

Please sign in to comment.