Fix route canonical metadata#817
Merged
Merged
Conversation
Aditya-thesys
approved these changes
Jul 22, 2026
zahlekhan
marked this pull request as ready for review
July 22, 2026 13:04
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>
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.
Summary
Root cause
PR #398 added
canonical: "/"while expanding homepage metadata, but placed it indocs/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:checkpnpm --filter @openuidev/docs buildgit diff --cached --checkNote
pnpm --filter @openuidev/docs format:checkremains red on 52 pre-existing upstream files. The patch introduces no whitespace errors and does not reformat unrelated files.