fix(content): remove pt-only posts from en blog collection #159
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
javascript
question
severity: high
severity: low
severity: medium
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
isyuricunha/website!159
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/remove-pt-posts-from-en-collection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the locale bug in the EN blog collection that leaked into the EN RSS feed and sitemap.
Evidence / Reproduction
https://yuricunha.com/rss.xml(the EN feed) listed posts with Portuguese titles and bodies:Coisas que eu gostaria que tivessem me dito quando entrei na faculdade de TI.Conselhos que eu gostaria de ter ouvido quando comecei na tecnologia.Both files existed identically in
content/blog/en/andcontent/blog/pt/(verified withdiff: identical bodies, PT titles in the EN copies). The EN feed served 38 items including these two PT posts, and the sitemap advertised the/blog/<slug>EN URLs withhreflang="en"for content that is entirely pt-BR.Root cause
The two posts are pt-BR originals but were also committed into the
en/content collection, duplicating theirpt/copies byte-for-byte. Every locale feed and page generator trusts the collection per-directory, so the EN surface (feed + sitemap + blog index) inherited the PT content.Fix
Remove the two duplicated files from
content/blog/en/. The correct pt-BR originals remain incontent/blog/pt/.Tests / Validation
Live-verified against a local
next startof this branch:/rss.xmlnow serves 36 items with zero Portuguese titles (was 38 with 2 PT posts)/blog/conselhos-que-eu-gostaria-de-ter-ouvido-quando-comecei-na-tecnologianow correctly 404s (the content was never English)/pt/blog/conselhos-que-eu-gostaria-de-ter-ouvido-quando-comecei-na-tecnologiastill serves 200 with the pt-BR contentResidual risks
/blog/coisas-que-eu-gostaria...,/blog/conselhos-que-eu-gostaria...) will now 404. Both slugs remain reachable under/pt/blog/.... The content was never available in English, so no reader loses a legitimate EN article.The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment