Repository navigation
Description
Summary
/map — the atlas entry point — has no metadata of its own. It inherits the global site title and
description and emits no canonical, so the front door of the atlas reads to a crawler as a
duplicate of the homepage. Every region and class page beneath it is described correctly.
Deferred deliberately in #62 (see PR #63); this
issue tracked fixing it once SahajCloud could describe the atlas root in every locale. It can now
— see Unblocked. Nothing in this repo consumes that answer yet.
Current behaviour
Still true on main at 3b7469f, verified 2026-10-03.
GET /map
<title>We Meditate</title> ← global default
<meta name="description" content="Discover free …"> ← global default
(no <link rel="canonical">)
Compare GET /map/gb/london, which is fully described — London, United Kingdom, a canonical read
from webUrl, 11 hreflang rows, og:*, and JSON-LD.
Why it is not fixed yet
The rule the implementation follows is that a page's metadata describes the atlas route the widget
mounted with. /map mounts with atlas=/, the atlas root. Three places in this repo still treat
that route as undescribable:
lib/atlas-route.ts:115—parseAtlasRoutereturnsnullfor/and for bare view routes.server/atlas-client.ts:66—getAtlasSeoshort-circuits on thatnulland never calls the
endpoint.server/atlas-types.ts:170-172—AtlasSeoResponsehas only'region'and'event'members, so
nothing here can type a root answer.
So +data.ts returns seo: null for the root and useAtlasHead contributes nothing. That is
asserted today by pages/map/Page.test.tsx:139.
Unblocked
Both original blockers landed, and the upstream 404 this ticket was written around is gone.
/api/atlas/seoanswers the root. SahajCloud#769 added atype: 'root'variant with
id: nullandcontent.paragraphs, and made bare view routes answer with the same document.
Confirmed on SahajCloudmain:src/endpoints/responseTypes.ts:186and
src/endpoints/atlas/seo/atlasRoute.ts:123.- The host contract is documented. docs(embedding): document the head metadata a host writes per atlas route SahajAtlasWeb#173 landed as PR fix(image): six paths skip the variant pipeline, four over-fetch #207.
docs/embedding.mdnow has a "Which routes answer as the root" section.
Localized metadata is served as data from upstream, so the ten-locale authoring problem that parked
this ticket no longer applies. The C3 concern — that a local implementation would be the second copy
— is satisfied by reading the endpoint rather than authoring strings here.
Acceptance criteria
-
server/atlas-types.tscarries the'root'member and its content type, re-mirrored from
SahajCloud'ssrc/endpoints/responseTypes.ts -
/mapemits a<title>and<meta name="description">describing the atlas root view,
not the site defaults -
/mapemits a self-referencing<link rel="canonical"> - Both are correct in every atlas locale, sourced from upstream rather than authored here
- Bare view routes (
/map/search,/map/calendar) resolve to the root view's metadata rather
than to nothing — they are views of the root - No English string is emitted into a non-English page's
<head> - Covered by a test in
pages/map/Page.test.tsxalongside the existing head assertions
Files likely affected
server/atlas-types.ts— re-mirror first. With no'root'member, the short-circuit below reads
as correct to anyone opening the filelib/atlas-route.ts—parseAtlasRoutereturnsnullfor/, which is the short-circuit. Its
doc comment at line 95 still says this site owns the root's metadata "because no SahajCloud
document describes it". That is now false, and must be corrected with the codeserver/atlas-client.ts—getAtlasSeoshort-circuits before the call; the root needs to reach
the endpointlib/atlas-head.tsx— already emits everything needed once given a document, canonical included,
through itsHeadconfig. No change expected
Interim considered and rejected
WebConfig.classPages[0] (the "Classes near me" page) is already localized and could supply a title
and description today. Rejected, and now moot: it describes our page about classes, not the atlas
root view, and upstream serves the real thing.
Related
- feat(map): server-rendered atlas routes under /map, plus sitemap and robots (C4) #62 — C4, where this was found
- SahajCloud #645 / #646 — the C3 endpoint and the original 404-on-root decision
- SahajCloud #769 — the
type: 'root'variant that lifted it - docs(embedding): document the head metadata a host writes per atlas route SahajAtlasWeb#173 — the host-contract documentation gap, closed by its PR fix(image): six paths skip the variant pipeline, four over-fetch #207
Notes
Re-check: 2026-10-02 — passed. Re-verified unresolved on main at 3b7469f on 2026-10-03.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
Ardnived commentedon Sep 8, 2026
Parked until 2026-10-02 (migrated from the retired Hold Until field). The loop mentions @Ardnived when that date passes.
4 remaining items
Ardnived commentedon Oct 3, 2026
@sydevs-bot Analyze recent changes to the code and decide whether this ticket is still relevant. I believe the issue it describes has already been resolved. If so, close it.
sydevs-bot commentedon Oct 3, 2026
🤖 no session running
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
sydevs-bot commentedon Oct 3, 2026
Not resolved — keeping it open.
/mapstill serves the site defaults onmainat3b7469f.The blockers did clear, but nothing here consumes the new answer:
server/atlas-types.ts:170-172—AtlasSeoResponsehas only'region'and'event'. No'root'member.lib/atlas-route.ts:115—parseAtlasRoutestill returnsnullfor/.server/atlas-client.ts:66—getAtlasSeoshort-circuits on thatnulland never calls the endpoint.So
+data.tshandsseo: nullto the root anduseAtlasHeademits nothing.pages/map/Page.test.tsx:139asserts exactly that today.Upstream is ready: SahajCloud
maincarries thetype: 'root'variant atsrc/endpoints/responseTypes.ts:186. No commit on our side has picked it up.I corrected the body: Blocked on is now Unblocked, the stale 404 premise is gone, and
server/atlas-types.tsis listed as the first file to touch. The work is small and well-defined now.@sydevs-bot implementstarts it.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
Ardnived commentedon Oct 6, 2026
@sydevs-bot implement