fix(routes): close 404s, add legal pages, clean sitemap (THE-16)#7
Open
wschenk wants to merge 1 commit into
Open
fix(routes): close 404s, add legal pages, clean sitemap (THE-16)#7wschenk wants to merge 1 commit into
wschenk wants to merge 1 commit into
Conversation
Marketing site audit (THE-2) flagged several plausible-intent URLs that 404 today plus missing legal pages required for enterprise procurement and Buttondown TOS expectations. The sitemap also leaks dev-only pages. Routes - /careers → /jobs (301 via Astro static redirect stub) - /products → account.thefocus.ai (302; external) - /studio → /insights (301; nav dropdown label, was 404) - /contact → real page with mailto + newsletter signup (no nav rewrite) - /privacy → minimal policy stub (Buttondown + Plausible disclosure) - /terms → minimal terms stub - /sitemap.xml emits a <sitemapindex> pointing at /sitemap-index.xml so crawlers that default to /sitemap.xml get a valid response Sitemap - @astrojs/sitemap now filters dev-only / scratch / redirect-stub pages: /drafts, /draft, /emails, /tags, plus all known redirect stubs (/blog, /careers, /products, /studio, /ai-maturity, /learnings, /coding-agents, /recipes) - Remove src/pages/draft.md (stray scratch file that became /draft) - Fix the broken "#compare" tag on the DeepResearch post; that produced /%23compare in the sitemap Legal copy in /privacy and /terms is a CEO-review stub, not polished policy — per issue boundary. Co-Authored-By: Paperclip <noreply@paperclip.ing>
4 tasks
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.
Summary
Closes broken marketing routes and adds the minimum legal surface needed for enterprise procurement and Buttondown TOS expectations. From the audit in THE-2, driven by THE-16.
What changed
Routes
/careers/jobs/productsaccount.thefocus.ai/studio/insights/contact/privacy/terms/sitemap.xml<sitemapindex>→/sitemap-index.xml/sitemap.xmlSitemap cleanup
@astrojs/sitemapnow filters dev-only / scratch / redirect-stub pages out of/sitemap-0.xml:/drafts,/draft,/emails,/tags, plus all redirect stubs (/blog,/careers,/products,/studio,/ai-maturity,/learnings,/coding-agents,/recipes).src/pages/draft.md— a stray scratch file that was getting served as/draft/.#comparetag in the DeepResearch post — that's what was producing/%23compare/in the sitemap.Out of scope (intentional)
/work→/case-studies(per the audit): there is uncommitted local work renaming/case-studies→/work, which inverts the redirect direction. I left that alone and worked frommain. Once that rename lands, add a/case-studies→/workredirect in a follow-up./contactis reachable by URL but the nav's "Contact" item is still the existingmailto:link.Test plan
pnpm buildpasses (191 pages).dist/sitemap-0.xmlno longer contains/drafts/,/draft/,/emails/,/tags/,/%23compare/, or any redirect stubs.dist/sitemap-0.xmlcontains/contact/,/privacy/,/terms/.dist/sitemap.xmlreturns a sitemapindex.dist/careers/index.html,dist/products/index.html,dist/studio/index.htmlare redirect stubs withnoindex+ canonical to the target./privacy,/terms,/contactrender with the standardBaseLayoutand proper canonical URLs./privacyand/termslegal copy.🤖 Generated with Claude Code (Paperclip CTO heartbeat for THE-16)