Skip to content

Commit

Permalink
Fix content for back link for edit route page
Browse files Browse the repository at this point in the history
This was missed from #1789.

Update the link text for the back link to read "Back to question X’s
routes", to match the designs.
  • Loading branch information
lfdebrux committed Feb 25, 2025
1 parent cb17ca3 commit 6f47f33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/pages/conditions/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%# TODO: route_position is hardcoded as 1 here because we know there are only two conditions. It will need to change in the future %>
<% set_page_title(title_with_error_prefix(t('page_titles.routing_page_edit', question_position: condition_input.page.position, route_position: 1), condition_input.errors&.any?)) %>
<% content_for :back_link, govuk_back_link_to(show_routes_path(condition_input.form.id, page_id: condition_input.page.id)) %>
<% content_for :back_link, govuk_back_link_to(show_routes_path(condition_input.form.id, page_id: condition_input.page.id), t(".back_link", question_number: condition_input.page.position)) %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,8 @@ en:
conditions:
delete:
any_other_answer_warning: If you delete this route, the route for any other answer will also be deleted
edit:
back_link: Back to question %{question_number}’s routes
delete:
notification_banner:
end_of_route:
Expand Down

0 comments on commit 6f47f33

Please sign in to comment.