Fix: Make LIVE links consistently point to www - #9115
Open
chosak wants to merge 1 commit into
Open
Conversation
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.
niqjohnson
approved these changes
Jun 25, 2026
niqjohnson
left a comment
Member
There was a problem hiding this comment.
Working locally for me: all instances of the "live" button are pointing to the same place in the Wagtail admin with this change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.