Skip to content

Render site-space custom home page at root - #4475

Open
tgargula wants to merge 1 commit into
mainfrom
tomasz/rnd-12254-gbo-render-space-linked-placements
Open

Render site-space custom home page at root#4475
tgargula wants to merge 1 commit into
mainfrom
tomasz/rnd-12254-gbo-render-space-linked-placements

Conversation

@tgargula

@tgargula tgargula commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Render a site-space custom home page at its placement root while preserving the full space and normal page URLs.

This allows a site space's root URL to display a custom home page (if configured via pageId) while keeping all other pages accessible at their normal paths. The linker uses direct page paths when a custom home page is set, ensuring consistent routing across all page resolution paths.

Changes

  • Add resolveSiteSpaceCustomHomePage, getSiteSpacePagePaths, and getLinkerForSiteSpace helpers
  • Update all page resolution paths (fetch, route handlers, markdown pages, RSS, MCP) to check for custom home pages
  • Add linkerWithDirectPagePaths to preserve explicit page paths when the root has a custom landing page
  • Update table of contents encoding to use site-space aware paths
  • Add comprehensive tests for custom home page resolution

Demo

Screen.Recording.2026-08-06.at.16.23.02.mov

…erving the full space and normal page URLs.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Aug 6, 2026

Copy link
Copy Markdown

RND-12254

@changeset-bot

changeset-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d0c9d65

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@argos-ci

argos-ci Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 60 changed, 4 ignored Aug 6, 2026, 2:10 PM
customers-v2-vercel (Inspect) 📭 Waiting for screenshots - Aug 6, 2026, 2:44 PM
v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 8 changed, 4 ignored Aug 6, 2026, 2:11 PM
v2-vercel (Inspect) 📭 Waiting for screenshots - Aug 6, 2026, 2:45 PM

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.

1 participant