Use site-level path for MCP URL instead of space-level path (#4149)

This commit is contained in:
Nolann B.
2026-03-30 13:09:25 +02:00
committed by GitHub
parent 4909044831
commit 832b44f0ac
@@ -185,7 +185,7 @@ function getPageActionsURLs({
: undefined,
mcp:
context.site.visibility !== SiteVisibility.VisitorAuth
? context.linker.toAbsoluteURL(context.linker.toPathInSpace('~gitbook/mcp'))
? context.linker.toAbsoluteURL(context.linker.toPathInSite('~gitbook/mcp'))
: undefined,
};
}