Skip to content

Fix route canonical metadata#817

Merged
zahlekhan merged 1 commit into
thesysdev:mainfrom
zahlekhan:codex/fix-route-canonicals
Jul 22, 2026
Merged

Fix route canonical metadata#817
zahlekhan merged 1 commit into
thesysdev:mainfrom
zahlekhan:codex/fix-route-canonicals

Conversation

@zahlekhan

Copy link
Copy Markdown
Contributor

Summary

  • remove the homepage canonical from the shared root layout
  • add route-specific canonicals for the homepage, playground, blog index and posts, and generated docs pages
  • preserve existing canonical metadata for chat, projects, and OpenClaw OS

Root cause

PR #398 added canonical: "/" while expanding homepage metadata, but placed it in docs/app/layout.tsx. Because that layout wraps the entire App Router site, docs and blog routes inherited the homepage canonical unless they explicitly overrode it.

Fixes #816.

Validation

  • pnpm --filter @openuidev/docs types:check
  • pnpm --filter @openuidev/docs build
  • inspected the production build output for every sitemap route: 63 checked, 0 canonical mismatches
  • git diff --cached --check

Note

pnpm --filter @openuidev/docs format:check remains red on 52 pre-existing upstream files. The patch introduces no whitespace errors and does not reformat unrelated files.

@zahlekhan
zahlekhan marked this pull request as ready for review July 22, 2026 13:04
@zahlekhan
zahlekhan merged commit 7b04778 into thesysdev:main Jul 22, 2026
2 checks passed
rahuldoval added a commit that referenced this pull request Jul 22, 2026
One conflict, in the layout renamed from app/playground to app/demos. #817
moved the root canonical out of app/layout.tsx into per-route metadata and
added a block there declaring canonical "/playground". Kept that block with the
rename applied, so the route now declares "/demos" — its actual path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

Fix homepage canonical URL inherited by docs and blog routes

2 participants