Repository navigation
fix(seo): canonical URLs on /ui and /origin, coss.com links in the footers - #931
Merged
Merged
Conversation
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).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
pasqualevitiello
enabled auto-merge (squash)
November 24, 2026 07:40
pasqualevitiello
approved these changes
Nov 24, 2026
This branch was successfully deployed
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.
What
<link rel="canonical">. Every indexable page now emits exactly one, absolute, self-referencing, on the URL its sitemap lists (basePath included, no trailing slash).<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:
/ui/particles?tags=…,/origin/search?tags=…?utm_source=…,?ref=…)/ui/docs/<page>.mdand/ui/api/raw/docs/<page>(served astext/plain)*.vercel.appdeployments of the same pagesAlmost 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
/ui,/ui/particles,/ui/chathttps://coss.com/ui,…/ui/particles,…/ui/chat/ui/docs/**(66 pages)https://coss.com/ui/docs/<page>(from fumadocs'page.url)/ui/particles?tags=button,inputhttps://coss.com/ui/particles/ui/docs/components/button.mdLink: <https://coss.com/ui/docs/components/button>; rel="canonical"/origin,/origin/<category>(30),/origin/search,/origin/easingshttps://coss.com/origin/…/origin/search?tags=multiselecthttps://coss.com/origin/searchEach 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 tohttps://coss.com/uidirectly (one redirect hop less on the main internal link from every Origin page).Footer changes
@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.Note:
apps/wwwalso 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
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.mdand/api/rawroutes send the Link header; a missing.mdstill 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,/originand/origin/button(local files; the "before" ones were taken onnext dev, so Next's dev indicator shows in the corner):/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/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-botwith what you need.