alphagov / whitehall

Publishes government content on GOV.UK
https://docs.publishing.service.gov.uk/apps/whitehall.html
MIT License
889 stars 191 forks source link

Translated HTML publications with whitehall-frontend as rendering app #3508

Open fofr opened 6 years ago

fofr commented 6 years ago

There's about 308 HTML publications with their rendering app set to whitehall-frontend rather than government-frontend. Each of these URLs ends with a number, suggesting they are all translations.

https://gist.github.com/fofr/103bb4d6b22c82e072347d84632be845

Translation URLs change when the content is updated. This suggests that perhaps the old content isn't being cleaned up correctly and that the old URLs are not being redirected to the new ones.

ChrisBAshton commented 2 months ago

This is still an issue, albeit only for 3 HTML publications:

ContentItem.where(rendering_app: 'whitehall-frontend', document_type: 'html_publication').map(&:base_path)
=> 
["/government/publications/counter-terrorism-support-for-businesses-and-communities/contact-details-for-local-counter-terrorism-security-advisers",
 "/government/publications/medical-devices-software-applications-apps/medical-device-stand-alone-software-including-apps",
 "/government/publications/uk-house-price-index-wales-april-2016/mynegai-prisiau-tai-y-du-cymru-ebrill-2016"]

There are 50 content items with a rendering app of whitehall_frontend though, which no longer exists - so these should be updated:

ContentItem.where(rendering_app: 'whitehall-frontend').map(&:base_path)
=> 
["/government/topics/further-education-and-skills",
 "/government/topics/government-efficiency-transparency-and-accountability",
 "/government/topics/financial-services",
 "/government/publications/medical-devices-software-applications-apps/medical-device-stand-alone-software-including-apps",
 "/government/topics/trade-and-investment",
 "/government/topics/international-aid-and-development",
 "/government/topics/crime-and-policing",
 "/government/topics/community-and-society",
 "/government/publications/withdraw-register-of-secretaries-information-from-the-central-register-ew03c.cy",
 "/government/topics/defence-and-armed-forces",
 "/government/topics/energy",
 "/government/topics/transport",
 "/government/topics/scotland",
 "/government/topics/business-and-enterprise",
 "/government/publications/uk-house-price-index-wales-april-2016/mynegai-prisiau-tai-y-du-cymru-ebrill-2016",
 "/government/topics/regulation-reform",
 "/government/topics/law-and-the-justice-system",
 "/government/topics/wales",
 "/government/topics/europe",
 "/government/topics/rural-and-countryside",
 "/government/topics/climate-change",
 "/government/topics/higher-education",
 "/government/topics/children-and-young-people",
 "/government/topics/uk-economy",
 "/government/topics/borders-and-immigration",
 "/government/topics/wildlife-and-animal-welfare",
 "/government/topics/tax-and-revenue",
 "/government/topics/food-and-farming",
 "/government/topics/equality-rights-and-citizenship",
 "/government/publications/ghana-not-included-in-the-new-adoption-legislation-introduced-by-department-for-education-dfe",
 "/government/topics/housing",
 "/government/people/amias-moors.hy",
 "/government/topics/science-and-innovation",
 "/government/topics/local-government",
 "/government/topics/welfare",
 "/government/topics/social-care",
 "/government/publications/mental-capacity-act-2005-deprivation-of-liberty-safeguards",
 "/government/topics/northern-ireland",
 "/government/topics/public-safety-and-emergencies",
 "/government/topics/pensions-and-ageing-society",
 "/government/topics/national-health-service",
 "/government/topics/public-health",
 "/government/topics/national-security",
 "/government/topics/foreign-affairs",
 "/government/topics/employment",
 "/government/publications/counter-terrorism-support-for-businesses-and-communities/contact-details-for-local-counter-terrorism-security-advisers",
 "/government/topics/environment",
 "/government/topics/schools",
 "/government/topics/government-spending",
 "/government/topics/sports-and-leisure"]
ChrisBAshton commented 1 month ago

Trello card for our backlog: https://trello.com/c/V77Bxxoy/323-investigate-pages-rendered-with-whitehall-frontend