Skip to content

fix: add trailingSlash config to eliminate canonical/sitemap mismatches#143

Merged
marcel-veselka merged 2 commits intomainfrom
fix/81-trailing-slash
Mar 17, 2026
Merged

fix: add trailingSlash config to eliminate canonical/sitemap mismatches#143
marcel-veselka merged 2 commits intomainfrom
fix/81-trailing-slash

Conversation

@marcel-veselka
Copy link
Copy Markdown
Member

Problem

Docusaurus generates URLs without trailing slash (e.g., /blog/post) but GitHub Pages redirects them to /blog/post/. This causes:

  • 84 "canonical points to redirect" errors — canonical tags reference the pre-redirect URL
  • 27 "3XX redirect in sitemap" warnings — sitemap lists URLs that redirect instead of final destinations
  • 102 total 3XX warnings in Ahrefs

Current Health Score: 58. Expected to reach 75+ after this fix.

Fix

Added trailingSlash: true to docusaurus.config.js. This makes Docusaurus generate all URLs with trailing slashes natively, matching the final URL after GitHub Pages redirect — eliminating the mismatch entirely.

Related

Related: marcel-veselka/vem-agents#81

@marcel-veselka marcel-veselka merged commit 75b32ea into main Mar 17, 2026
1 check passed
@marcel-veselka marcel-veselka deleted the fix/81-trailing-slash branch March 17, 2026 19:55
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