Skip to content

Emit trailing-slash URLs and a real homepage description - #294

Merged
stesee merged 1 commit into
mainfrom
seo/trailing-slash-description
Oct 24, 2026
Merged

stesee merged 1 commit into
mainfrom
seo/trailing-slash-description

Conversation

@stesee

@stesee stesee commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • trailingSlash: true in docusaurus.config.ts. GitHub Pages 301-redirects /blog/post to /blog/post/, but the sitemap and rel=canonical used the slash-less form, so all sitemap entries (except /) and all canonicals pointed at a redirect. Search Console reports such URLs as "Page with redirect" / "Alternate page with proper canonical tag" instead of indexing them.
  • Replace the Docusaurus template placeholder meta description on the homepage ("Description will go into a meta tag in ").

Verification

Local npm run build (onBrokenLinks: throw passed):

  • all 38 <loc> entries end in / and each maps to an existing build/…/index.html
  • canonical of /blog/qr-scanner-demo/ is https://codeuctivity.cloud/blog/qr-scanner-demo/
  • homepage meta description is the new text

🤖 Generated with Claude Code

GitHub Pages serves every page as a directory and 301-redirects
/blog/post to /blog/post/. Without trailingSlash the sitemap and
canonical links used the slash-less form, so each sitemap entry and each
canonical pointed at a redirect. trailingSlash: true makes links,
canonicals and sitemap use the final URL.

The homepage still had the Docusaurus template placeholder as its meta
description.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 24, 2026 20:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@stesee
stesee merged commit a957a91 into main Oct 24, 2026
1 check passed
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.

2 participants