Skip to content

fix(web): give blog posts and docs pages canonical URLs - #3421

Open
patrickballard wants to merge 1 commit into
CapSoftware:mainfrom
patrickballard:fix/blog-docs-canonical
Open

patrickballard wants to merge 1 commit into
CapSoftware:mainfrom
patrickballard:fix/blog-docs-canonical

Conversation

@patrickballard

@patrickballard patrickballard commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

All of cap.so's marketing pages declare a canonical URL, but the 12 blog posts, the 23 docs pages and /deactivate-license don't (checked against the live site). This adds one to each, in the same absolute https://cap.so/... form the other pages use:

  • blog posts: https://cap.so/blog/<slug>
  • docs pages: https://cap.so/docs/<slug>, except the docs home, which answers at both /docs and /docs/introduction: both point at https://cap.so/docs, the URL the header, footer and nav link to. Its og:url now says /docs too.
  • /deactivate-license: https://cap.so/deactivate-license

Tests

  • canonical-urls.test.ts: /deactivate-license added to the list, and two checks in the style of the existing [conversionPath] one for the blog and docs routes. All three fail without the change; the file's other 27 checks still pass. (This file isn't in CI's web test list today.)
  • Checked locally that generateMetadata returns these canonicals for every blog post and for /docs, /docs/introduction and /docs/recording/studio-mode.
  • bun run typecheck: no errors. Biome clean.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Adds canonical URLs to blog posts, docs pages, and /deactivate-license.

  • Blog posts point search engines to their own canonical URLs.
  • Docs pages point to their own canonical addresses.
  • The license deactivation page names its canonical URL.

Reviews (1) · Last reviewed commit: "fix(web): give blog posts and docs pages..." · Reviewed by Greptile

Every marketing page declares a canonical URL, but blog posts, docs pages
and /deactivate-license didn't. Add them, and point the docs home, which
answers at both /docs and /docs/introduction, at /docs.
@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

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

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 26, 2026 7:03pm UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 26, 2026 19:03 Inactive

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 789e0b19 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant