Skip to content

Commit

Permalink
Merge pull request #185 from companieshouse/IDVA5-1855-fix-page-titles
Browse files Browse the repository at this point in the history
Remove {NAME} from tab titles
  • Loading branch information
rnesbitt-ch authored Feb 28, 2025
2 parents 97c2853 + f0e95dd commit ab71859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/views/personal-code/personal-code.njk
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{% from "govuk/components/button/macro.njk" import govukButton %}
{% extends "layouts/default.njk" %}

{% if "en" in lang %}
{% set title = firstName + ' ' + lastName + ' ' + i18n.codePageTitle %}
{% else %}
{% set title = i18n.codePageTitle + ' ' + firstName + ' ' + lastName %}
{% endif %}
{% set title = i18n.codePageHeading | replace('{NAME}', firstName + ' ' + lastName) %}

{% block main_content %}
<form action="" method="POST">
Expand Down
6 changes: 1 addition & 5 deletions src/views/persons-email/persons-email.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
{% from "govuk/components/inset-text/macro.njk" import govukInsetText %}
{% extends "layouts/default.njk" %}

{% if "en" in lang %}
{% set title = i18n.whatIs + ' ' + firstName + ' ' + lastName + i18n.emailAddress %}
{% else %}
{% set title = i18n.whatIs + ' ' + i18n.emailAddress + ' ' + firstName + ' ' + lastName %}
{% endif %}
{% set title = i18n.whatIs + i18n.emailAddress | replace('{NAME}', firstName + ' ' + lastName) %}

{% block main_content %}
<form action="" method="POST">
Expand Down

0 comments on commit ab71859

Please sign in to comment.