Skip to content

fix(seo): align breadcrumb and schema URLs with canonical trailing slashes#48

Merged
lwalden merged 1 commit into
mainfrom
fix/seo-url-alignment
Apr 16, 2026
Merged

fix(seo): align breadcrumb and schema URLs with canonical trailing slashes#48
lwalden merged 1 commit into
mainfrom
fix/seo-url-alignment

Conversation

@lwalden

@lwalden lwalden commented Apr 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixed 6 breadcrumb JSON-LD URLs that were missing trailing slashes (e.g. https://lwalden.dev/posts instead of https://lwalden.dev/posts/), causing a mismatch with canonical tags and sitemap URLs which all use trailing slashes
  • Fixed Organization and Person schema url fields to include trailing slash, matching the homepage canonical (https://lwalden.dev/)
  • 7 files changed, all edits are URL string fixes in frontmatter/TypeScript — no HTML or accessibility changes

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

File Fix
src/lib/schemas.ts Organization + Person schema URLs: added trailing /
src/pages/about.astro Breadcrumb URL: /about -> /about/
src/pages/posts/index.astro Breadcrumb URL: /posts -> /posts/
src/pages/posts/[...slug]/index.astro Breadcrumb URL: /posts -> /posts/
src/pages/posts/tag/[tag]/index.astro Breadcrumb URL: /posts -> /posts/
src/pages/projects.astro Breadcrumb URL: /projects -> /projects/
src/pages/projects/[slug]/index.astro Breadcrumb URL: /projects -> /projects/

Test plan

  • Verify deployed site breadcrumb JSON-LD matches canonical URLs (all with trailing slashes)
  • Verify Organization schema URL is https://lwalden.dev/
  • Verify Person schema URL is https://lwalden.dev/
  • Run Google Rich Results Test on a blog post to confirm valid structured data

🤖 Generated with Claude Code

…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>
@lwalden lwalden merged commit b4e22fe into main Apr 16, 2026
1 of 2 checks passed
@lwalden lwalden deleted the fix/seo-url-alignment branch April 16, 2026 03:32
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