Skip to content

[DO NOT MERGE] Change the share method text from Twitter to X#5371

Draft
jon-kirwan wants to merge 4 commits into
mainfrom
change-the-share-method-text-from-twitter-to-x-
Draft

[DO NOT MERGE] Change the share method text from Twitter to X#5371
jon-kirwan wants to merge 4 commits into
mainfrom
change-the-share-method-text-from-twitter-to-x-

Conversation

@jon-kirwan

@jon-kirwan jon-kirwan commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

What

Change the share method text to:

  • Share on Facebook
  • Share on X

Review URLs:

Why

Visual changes

Before

After

Anything else

Note that this change only updates the link text for a few document types in Frontend that set the share text within the application (call for evidence, consultation, and news stories).

I’ve also updated the share URL from https://twitter.com/share?url=#{share_url(base_path)}&text=#{ERB::Util.url_encode(title)} to https://x.com/share?url=#{share_url(base_path)}&text=#{ERB::Util.url_encode(title)}. I couldn’t find this documented anywhere, but it appears to work correctly and redirects to x.

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5371 March 9, 2026 09:41 Inactive
@jon-kirwan jon-kirwan force-pushed the change-the-share-method-text-from-twitter-to-x- branch from 895214e to ffa8a3e Compare March 9, 2026 09:50
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5371 March 9, 2026 09:51 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5371 March 9, 2026 09:58 Inactive
@jon-kirwan jon-kirwan force-pushed the change-the-share-method-text-from-twitter-to-x- branch from 5f9f420 to a6eb63f Compare March 9, 2026 10:03
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5371 March 9, 2026 10:04 Inactive
@jon-kirwan jon-kirwan force-pushed the change-the-share-method-text-from-twitter-to-x- branch from a6eb63f to 87c9a87 Compare March 9, 2026 10:24
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5371 March 9, 2026 10:24 Inactive
@jon-kirwan jon-kirwan marked this pull request as ready for review March 9, 2026 10:33
sihugh
sihugh previously approved these changes Mar 9, 2026

@sihugh sihugh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jon-kirwan jon-kirwan changed the title Change the share method text from Twitter to X [DO NOT MERGE] Change the share method text from Twitter to X Mar 9, 2026
@jon-kirwan jon-kirwan marked this pull request as draft July 3, 2026 11:02
@jon-kirwan jon-kirwan force-pushed the change-the-share-method-text-from-twitter-to-x- branch 2 times, most recently from 543a2ad to 0badce6 Compare July 3, 2026 11:20
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-br-change-t July 6, 2026 13:45 Inactive
jon-kirwan and others added 4 commits July 6, 2026 14:58
Update share text to include a 'Share on' prefix and replace 'Twitter' with 'X'.
Not needed. The hidden text defaults to "Share on", and since the visible text already reads "Share on…", the hidden text would just repeat it, so it isn’t required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants