Repository navigation
docs(server): a page slug is not localized - #225
Merged
Merged
Conversation
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
Contributor
Author
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
marked this pull request as ready for review
November 5, 2026 16:15
sydevs-bot
enabled auto-merge
November 5, 2026 16:16
Ardnived
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
server/AGENTS.mdcalledsluga localized field. Onlytitleis, and the SEO surface depends on that.hreflangderivation.Preview
Test results
.claude/skills/pr-prep/check.sh— lint,tsc --noEmit, 921 tests in 91 filesNotes for reviewer
Three places agree the slug is not localized, and the line I changed was the only one that disagreed:
src/fields/slugField.tsin SahajCloud takes alocalizedoption, and no collection passes it. ItsisLivehook says so outright: "the slug is not localized".lib/hreflang.tsspells one path per document and prefixes a locale onto it. A localized slug would make every non-English alternate wrong.server/sitemap-routes.tsreadsslugunderlocale: 'all'and filters ontypeof 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.
/simplifyand/code-reviewdid not run: the diff is one prose bullet in one.mdfile, with no code surface for either.comment-lint.mjs --base origin/mainreports 0 changed code files. ThesecurityReview.triggerPatternin.claude/workflow.jsonmatched this path on^server/, which the prose files underserver/also match; I read the diff instead of running a security review over a documentation sentence.Generated by Claude Code