Skip to content

More consistent trailing slashes#350

Merged
fretchen merged 3 commits intomainfrom
seo
Mar 13, 2026
Merged

More consistent trailing slashes#350
fretchen merged 3 commits intomainfrom
seo

Conversation

@fretchen
Copy link
Owner

All internal links should be with trailing slashes.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR standardizes trailing-slash URL behavior across the website (components, pages, and tests) and updates internal navigation to use the project’s Link component, aligning routing with the static build structure.

Changes:

  • Add trailing-slash normalization for internal links (notably in Link and EntryList) and update tests accordingly.
  • Replace raw internal <a href="/..."> links with the Link component in key pages/posts to ensure consistent locale + slash behavior.
  • Add website/public/CNAME for custom-domain hosting and update blog/internal links to use trailing slashes.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
website/test/Post.integration.test.tsx Adds missing hook mocks to stabilize Post integration tests.
website/test/Link.test.tsx New unit tests covering Link trailing-slash + locale behavior.
website/test/LanguageToggle.test.tsx Updates expectations to match trailing-slash normalization.
website/test/EntryList.test.tsx Updates href expectations and adds a basePath normalization test.
website/test/EntryList.filtering.test.tsx Updates expected blog entry hrefs to include trailing slashes.
website/public/CNAME Adds custom domain configuration for the deployed static site.
website/pages/x402/+Page.tsx Switches internal anchors to Link for consistent routing behavior.
website/components/MetadataLine.tsx Changes date parsing to avoid timezone-induced date shifts.
website/components/Link.tsx Enforces trailing slashes on internal page links before locale prefixing.
website/components/EntryList.tsx Normalizes basePath and ensures generated entry URLs include trailing slashes.
website/blog/x402_facilitator_imagegen.mdx Updates internal markdown links to include trailing slashes.
website/blog/merkle_ai_batching.tsx Uses Link for internal navigation links.
website/blog/merkle_ai_batching_fundamentals.tsx Uses Link for internal navigation links.

You can also share your feedback on Copilot code review. Take the survey.

@fretchen fretchen merged commit 047ee40 into main Mar 13, 2026
8 checks passed
@fretchen fretchen deleted the seo branch March 13, 2026 15:43
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