Skip to content

docs(server): a page slug is not localized - #225

Merged
sydevs-bot merged 1 commit into
mainfrom
claude/docs-server-slug-not-localized
Nov 10, 2026
Merged

sydevs-bot merged 1 commit into
mainfrom
claude/docs-server-slug-not-localized

Conversation

@sydevs-bot

Copy link
Copy Markdown
Contributor

Summary

  • server/AGENTS.md called slug a localized field. Only title is, and the SEO surface depends on that.
  • Found by tonight's audit (experience → SEO and discoverability), while reading the canonical and hreflang derivation.

Preview

  • Prose only — no route changes, so a preview deployment shows nothing. Read the diff.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh — lint, tsc --noEmit, 921 tests in 91 files
  • Targeted specs: none — no code changed
  • Build: N/A

Notes for reviewer

Three places agree the slug is not localized, and the line I changed was the only one that disagreed:

  • src/fields/slugField.ts in SahajCloud takes a localized option, and no collection passes it. Its isLive hook says so outright: "the slug is not localized".
  • lib/hreflang.ts spells one path per document and prefixes a locale onto it. A localized slug would make every non-English alternate wrong.
  • server/sitemap-routes.ts reads slug under locale: 'all' and filters on typeof doc.slug === 'string'. A localized slug arrives as a per-locale map there, so every page would drop out of the sitemap.

That is the failure this prevents: a reader who believed the old sentence would have "fixed" one of those two in the wrong direction.

/simplify and /code-review did not run: the diff is one prose bullet in one .md file, with no code surface for either. comment-lint.mjs --base origin/main reports 0 changed code files. The securityReview.triggerPattern in .claude/workflow.json matched this path on ^server/, which the prose files under server/ also match; I read the diff instead of running a security review over a documentation sentence.


Generated by Claude Code

The API-read rules called `title` and `slug` localized fields. Only `title`
is: no collection in SahajCloud passes `localized` to `slugField`, and the
Pages slug hook states it outright ("the slug is not localized").

The difference is load-bearing on the SEO surface, which is why the line
now carries it. `lib/hreflang.ts` spells one path and prefixes a locale onto
it, and `server/sitemap-routes.ts` reads `slug` with `locale: 'all'` and
expects a plain string — both are wrong the moment a slug is localized, and
a reader following the old sentence would have fixed them in the wrong
direction.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWk9J7Pt86wVAo4ruc
@sydevs-bot

sydevs-bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 10, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 2bb1539 Nov 10, 2026
22 checks passed
@sydevs-bot
sydevs-bot deleted the claude/docs-server-slug-not-localized branch November 10, 2026 16:07
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants