MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / orgScopedTo

Function orgScopedTo

packages/react/src/multiplayer/shell.tsx:77–77  ·  view source on GitHub ↗
(to: string)

Source from the content-addressed store, hash-verified

75// typed on purpose: host-specific items ("/admin", "/billing") resolve against
76// the host's own route tree, which this package can't see.
77const orgScopedTo = (to: string): string => (to === "/" ? "/{-$orgSlug}" : `/{-$orgSlug}${to}`);
78
79const normalizePluginPagePath = (path: string): string => {
80 if (!path || path === "/") return "/";

Callers 1

NavItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected