Skip to content

Fix: Make LIVE links consistently point to www - #9115

Open
chosak wants to merge 1 commit into
mainfrom
fix/live-page-urls
Open

Fix: Make LIVE links consistently point to www#9115
chosak wants to merge 1 commit into
mainfrom
fix/live-page-urls

Conversation

@chosak

@chosak chosak commented Jun 23, 2026

Copy link
Copy Markdown
Member

This project overrides the Wagtail page status tag template to always use the "full" page URL:
https://github.com/cfpb/consumerfinance.gov/blob/c6703651d2abffcba4fbec3e95ea8aa187acdc07/cfgov/wagtailadmin_overrides/templates/wagtailadmin/shared/page_status_tag.html This is to enforce LIVE links to www.cf.gov even when browsing Wagtail on an alternate domain name.

This functionality was working only partially; some LIVE links weren't pointing to www as desired. This change adds an additional template override to accomplish this.

The content of this file comes from
https://github.com/wagtail/wagtail/blob/cb3ed5a2891466f99aa213575caf40ef273a307b/wagtail/admin/templates/wagtailadmin/shared/page_status_tag_new.html with page.url replaced by page.full_url, to be consistent with the existing override.

See internal cfgov#4679 for context.

This project overrides the Wagtail page status tag template to always
use the "full" page URL:
https://github.com/cfpb/consumerfinance.gov/blob/c6703651d2abffcba4fbec3e95ea8aa187acdc07/cfgov/wagtailadmin_overrides/templates/wagtailadmin/shared/page_status_tag.html
This is to enforce LIVE links to www.cf.gov even when browsing Wagtail
on an alternate domain name.

This functionality was working only partially; some LIVE links weren't
pointing to www as desired. This change adds an additional template
override to accomplish this.

The content of this file comes from
https://github.com/wagtail/wagtail/blob/cb3ed5a2891466f99aa213575caf40ef273a307b/wagtail/admin/templates/wagtailadmin/shared/page_status_tag_new.html
with page.url replaced by page.full_url, to be consistent with the
existing override.

See internal cfgov#4679 for context.
@chosak
chosak requested a review from niqjohnson June 23, 2026 16:51

@niqjohnson niqjohnson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Working locally for me: all instances of the "live" button are pointing to the same place in the Wagtail admin with this change.

@wpears wpears left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

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.

3 participants