fix(seo): align breadcrumb and schema URLs with canonical trailing slashes#48
Merged
Conversation
…ashes Breadcrumb JSON-LD item URLs were missing trailing slashes (e.g. https://lwalden.dev/posts) while canonical tags and sitemap URLs included them (https://lwalden.dev/posts/). This mismatch causes Google to see inconsistent URL signals across structured data, canonical, and sitemap — hurting indexing confidence. Also fixes Organization and Person schema URLs to include trailing slash, matching the homepage canonical. Co-Authored-By: Claude Opus 4.6 (1M context) <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
https://lwalden.dev/postsinstead ofhttps://lwalden.dev/posts/), causing a mismatch with canonical tags and sitemap URLs which all use trailing slashesurlfields to include trailing slash, matching the homepage canonical (https://lwalden.dev/)Context
Google sees three URL signals per page: canonical tag, sitemap entry, and structured data URLs. When these disagree on trailing slashes, Google's confidence in the canonical URL drops, which can delay or prevent proper indexing. This aligns all three signals to use trailing slashes consistently.
Files changed
src/lib/schemas.ts/src/pages/about.astro/about->/about/src/pages/posts/index.astro/posts->/posts/src/pages/posts/[...slug]/index.astro/posts->/posts/src/pages/posts/tag/[tag]/index.astro/posts->/posts/src/pages/projects.astro/projects->/projects/src/pages/projects/[slug]/index.astro/projects->/projects/Test plan
https://lwalden.dev/https://lwalden.dev/🤖 Generated with Claude Code