You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apps/docs/lib/layout.shared.tsx declares gitConfig.repo = 'framework', but this repository is objectstack-ai/objectstack. Every GitHub URL the docs site emits therefore relies on GitHub's rename redirect.
Measured
$ gh api /repos/objectstack-ai/framework --jq '.full_name'
objectstack-ai/objectstack
The old name still resolves — GitHub keeps a permanent redirect after a rename — so nothing is visibly broken today. What is emitted:
the nav bar's GitHub link (baseOptions().githubUrl)
the homepage hero's GitHub button
every doc page's "Edit on GitHub" link, …/framework/blob/main/content/docs/<path>
The first three are redirects a user never notices. The fourth is different: codeRepository is a machine-readable identity claim, and a consumer that resolves it gets a 301 to a different name than the one asserted. Redirects are also revocable — a future org that creates a new repo named framework silently repoints every one of these links.
Fix
One line: repo: 'objectstack' in apps/docs/lib/layout.shared.tsx. Worth a rendered check of one doc page's edit link afterwards, since that URL is assembled from user/repo/branch plus page.path.
Source
Found while implementing #12240 — the JSON-LD needed a codeRepository, and reusing the site's own constant meant checking what it points at.
One-liner
apps/docs/lib/layout.shared.tsxdeclaresgitConfig.repo = 'framework', but this repository isobjectstack-ai/objectstack. Every GitHub URL the docs site emits therefore relies on GitHub's rename redirect.Measured
The old name still resolves — GitHub keeps a permanent redirect after a rename — so nothing is visibly broken today. What is emitted:
baseOptions().githubUrl)…/framework/blob/main/content/docs/<path>SoftwareSourceCode.codeRepositoryin the homepage JSON-LDWhy it is worth a line of code
The first three are redirects a user never notices. The fourth is different:
codeRepositoryis a machine-readable identity claim, and a consumer that resolves it gets a 301 to a different name than the one asserted. Redirects are also revocable — a future org that creates a new repo namedframeworksilently repoints every one of these links.Fix
One line:
repo: 'objectstack'inapps/docs/lib/layout.shared.tsx. Worth a rendered check of one doc page's edit link afterwards, since that URL is assembled fromuser/repo/branchpluspage.path.Source
Found while implementing #12240 — the JSON-LD needed a
codeRepository, and reusing the site's own constant meant checking what it points at.