Skip to content

fix(seo): canonical URLs on /ui and /origin, coss.com links in the footers - #931

Merged
pasqualevitiello merged 2 commits into
mainfrom
seo/canonicals-and-coss-links
Nov 24, 2026
Merged

pasqualevitiello merged 2 commits into
mainfrom
seo/canonicals-and-coss-links

Conversation

@pumfleet

@pumfleet pumfleet commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What

  1. Canonical URLs. No page on coss.com/ui or coss.com/origin emitted a <link rel="canonical">. Every indexable page now emits exactly one, absolute, self-referencing, on the URL its sitemap lists (basePath included, no trailing slash).
  2. coss.com links in the footers. The footers now say who funds the project and link a handful of coss.com pages: products, the email, SMS and scheduling APIs, docs and blog. Plain <a> links (coss.com is another zone, so no client routing), no tracking, nothing in the registry or the libraries changes.

Why

Search Console reports about 270 "Duplicate without user-selected canonical" URLs on coss.com. Without a canonical, Google picks one itself among copies of the same page:

  • filtered views: /ui/particles?tags=…, /origin/search?tags=…
  • any query string (?utm_source=…, ?ref=…)
  • the raw Markdown copy of every docs page: /ui/docs/<page>.md and /ui/api/raw/docs/<page> (served as text/plain)
  • preview and *.vercel.app deployments of the same pages

Almost all of coss.com's backlinks point at /ui and /origin, and they get the vast majority of its search clicks. The footer links let some of that reach the rest of coss.com, and tell people who use the components what else the team makes.

Canonical changes

Page Before After
/ui, /ui/particles, /ui/chat none https://coss.com/ui, …/ui/particles, …/ui/chat
/ui/docs/** (66 pages) none https://coss.com/ui/docs/<page> (from fumadocs' page.url)
/ui/particles?tags=button,input none https://coss.com/ui/particles
/ui/docs/components/button.md no header Link: <https://coss.com/ui/docs/components/button>; rel="canonical"
/origin, /origin/<category> (30), /origin/search, /origin/easings none https://coss.com/origin/…
/origin/search?tags=multiselect none https://coss.com/origin/search
404 pages noindex unchanged (noindex, no canonical)

Each app gets a small lib/canonical.ts (absoluteUrl(path)), and both sitemaps now build their URLs with it, so the sitemap and the canonicals can't drift. The sitemaps' contents are unchanged.

Also: Origin's top banner linked to https://coss.com/ui/, which 308-redirects to /ui; it now links to https://coss.com/ui directly (one redirect hop less on the main internal link from every Origin page).

Footer changes

  • coss ui (home, particles, chat, 404; shared @coss/ui/shared/site-footer): "coss ui is free and open source, funded by coss.com: one API for email, SMS, scheduling and more." plus a row of links. This replaces "coss.com – open source, open heart, open mind.": coss.com itself (the commercial product) isn't open source, coss ui is.
  • coss ui docs (sidebar card footer): one added line, "The same team builds coss.com: one API for email, SMS, scheduling and more.", with those words linked.
  • Origin: the same sentence and link row next to the copyright.

Note: apps/www also renders the shared footer. As far as I can tell it isn't what's served at coss.com any more (coss.com's own site is), but if it's deployed somewhere its footer now talks about coss ui.

Verification

  • Production builds of both apps (next build + next start): fetched every URL in each sitemap and checked the HTML has exactly one canonical equal to the sitemap URL. ui: 69/69, origin: 33/33. Query-string variants canonicalize to the clean URL; the .md and /api/raw routes send the Link header; a missing .md still 404s.
  • bunx biome check --linter-enabled=false ., bun run lint (no new warnings), bun run typecheck, bun run test: all pass.

Screenshots

Footer, before and after, light and dark, desktop (1280px) and mobile (390px), for /ui, /ui/docs/components/button, /origin and /origin/button (local files; the "before" ones were taken on next dev, so Next's dev indicator shows in the corner):

  • Before: /private/tmp/claude-501/-Users-bailey-Development-coss/658dc0ab-95e4-46a3-91ee-ac240a9702ec/scratchpad/shots/before-{ui-home,ui-docs,origin-home,origin-button}-{desktop,mobile}-{light,dark}.png
  • After: /private/tmp/claude-501/-Users-bailey-Development-coss/658dc0ab-95e4-46a3-91ee-ac240a9702ec/scratchpad/shots/after-{ui-home,ui-docs,origin-home,origin-button}-{desktop,mobile}-{light,dark}.png

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Every indexable page now emits one absolute canonical on coss.com,
matching what its sitemap lists (basePath included, no trailing slash).
Filtered views (?tags=) canonicalize to the unfiltered page, and the raw
Markdown copies of docs pages (/ui/docs/<page>.md) send a canonical Link
header pointing at the HTML page. The sitemaps build their URLs from the
same helper so the two can't drift.

Origin's banner links to coss.com/ui instead of coss.com/ui/, which
redirected.
The footers say who funds the project and link coss.com's products,
docs and blog with plain links (another zone, so no client routing).
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
coss-com Ready Ready Preview Nov 23, 2026 6:48pm UTC
coss-com-origin Ready Ready Preview Nov 23, 2026 6:48pm UTC
coss-com-ui Ready Ready Preview Nov 23, 2026 6:48pm UTC
coss-examples-calcom Ready Ready Preview Nov 23, 2026 6:48pm UTC

Request Review

@pasqualevitiello
pasqualevitiello merged commit 11f4620 into main Nov 24, 2026
15 checks passed
@pasqualevitiello
pasqualevitiello deleted the seo/canonicals-and-coss-links branch November 24, 2026 07:40
@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

ENG-9600

This branch was successfully deployed

4 active deployments
Preview – coss-com-ui — 87e64bab Deployed Nov 23, 2026 by vercel[bot]
Preview – coss-com-origin — 87e64bab Deployed Nov 23, 2026 by vercel[bot]
Preview – coss-examples-calcom — 87e64bab Deployed Nov 23, 2026 by vercel[bot]
Preview – coss-com — 87e64bab Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants