Skip to content

Handle duplicate [withdrawn] tag in page title#5289

Draft
sairamya93 wants to merge 1 commit into
mainfrom
handle-duplicate-withdrawn-page-title
Draft

Handle duplicate [withdrawn] tag in page title#5289
sairamya93 wants to merge 1 commit into
mainfrom
handle-duplicate-withdrawn-page-title

Conversation

@sairamya93

Copy link
Copy Markdown
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What/Why

To handle duplication of [Withdrawn] tag in the page title when the actual title itself contains the tag [Withdrawn].

Jira card: https://gov-uk.atlassian.net/browse/[CARD-ID]

Screenshots

Example page - https://www.gov.uk/government/publications/financial-sanctions-consolidated-list-of-targets

Before

image

After

image

- Updated build_page_title method to not add in [Withdrawn] tag when the title already starts with [Withdrawn] to avoid duplication in page title.
@sairamya93 sairamya93 force-pushed the handle-duplicate-withdrawn-page-title branch from c1d4028 to 5ed6b6b Compare February 6, 2026 17:37
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5289 February 6, 2026 17:37 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants