Skip to content

feat(app): add homepage canonical link and og:type - #552

Open
claude[bot] wants to merge 1 commit into
mainfrom
feat/homepage-canonical-og-type
Open

feat(app): add homepage canonical link and og:type#552
claude[bot] wants to merge 1 commit into
mainfrom
feat/homepage-canonical-og-type

Conversation

@claude

@claude claude Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Requested via Slack thread

One of five PRs replacing #530, which bundled all five root-domain discovery fixes into a single change.

Summary

Before: the homepage head already carries the full set of Open Graph and Twitter card tags plus JSON-LD, but it has no canonical link and no Open Graph object type. A search or AI engine reading the page cannot confirm which URL is the canonical root — so query-string variants of the homepage risk being treated as separate, duplicate URLs — and the Open Graph object is incomplete.

After: the homepage head also emits a canonical link pointing at https://docs.page/ and an Open Graph type of website, alongside the tags that were already there. Nothing visible on the page changes; the difference shows up in the page source and in how crawlers read it.

How: two lines added to the Head block in app/src/components/homepage/index.tsx — a rel="canonical" link and an og:type meta tag. No other files touched, no cache-header or routing changes.

Scope

  • app/ (hosted site, MCP, Ask AI)
  • packages/cli/
  • packages/mdx-bundler/
  • docs/ (product documentation)
  • Repo / CI / other

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / chore

Test plan

  • biome ci . clean (the check CI runs)
  • bun test — 140 pass, 0 fail
  • tsc --noEmit in app/ — clean

Notes for reviewers

  • Smallest of the five PRs: a two-line diff in one file.
  • Branch is cut from main, so this merges independently of the other four PRs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y5HaatshAzKUdXWYUbAC4a


Generated by Claude Code

The homepage head carried full OG/Twitter tags and JSON-LD but no
rel="canonical" link and no og:type, so search and AI engines could not
confirm the canonical root URL (query-string variants risk duplicate-URL
dilution) or the Open Graph object type.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y5HaatshAzKUdXWYUbAC4a
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@railway-app

railway-app Bot commented Sep 8, 2026

Copy link
Copy Markdown

🚅 Deployed to the docs.page-pr-552 environment in docs.page

Service Status Web Updated
docs.page ✅ Success (View Logs) Web Sep 8, 2026 at 10:29 am UTC

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.

2 participants